starknet 2.7.0 → 2.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/__tests__/provider.test.ts +4 -0
- package/dist/types.d.ts +1 -1
- package/package.json +1 -1
- package/src/types.ts +1 -1
- package/types.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [2.7.1](https://github.com/seanjameshan/starknet.js/compare/v2.7.0...v2.7.1) (2022-01-04)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- **types:** add block_number property to GetBlockResponse interface ([696cf5a](https://github.com/seanjameshan/starknet.js/commit/696cf5ae565bd16365045cc1f20e9fa55184d054))
|
|
6
|
+
|
|
1
7
|
# [2.7.0](https://github.com/seanjameshan/starknet.js/compare/v2.6.0...v2.7.0) (2022-01-03)
|
|
2
8
|
|
|
3
9
|
### Bug Fixes
|
|
@@ -26,6 +26,10 @@ describe('defaultProvider', () => {
|
|
|
26
26
|
test('getBlock(blockHash=undefined, blockNumber=null)', () => {
|
|
27
27
|
return expect(defaultProvider.getBlock()).resolves.not.toThrow();
|
|
28
28
|
});
|
|
29
|
+
test('getBlock() -> { blockNumber }', async () => {
|
|
30
|
+
const block = await defaultProvider.getBlock();
|
|
31
|
+
return expect(block).toHaveProperty('block_number');
|
|
32
|
+
});
|
|
29
33
|
test('getCode()', () => {
|
|
30
34
|
return expect(
|
|
31
35
|
defaultProvider.getCode(
|
package/dist/types.d.ts
CHANGED
package/package.json
CHANGED
package/src/types.ts
CHANGED
package/types.d.ts
CHANGED