@harmony-js/core
Advanced tools
Comparing version 0.0.20 to 0.0.21
{ | ||
"name": "@harmony-js/core", | ||
"version": "0.0.20", | ||
"version": "0.0.21", | ||
"description": "harmony core package", | ||
@@ -21,10 +21,10 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@harmony-js/account": "0.0.20", | ||
"@harmony-js/contract": "0.0.20", | ||
"@harmony-js/crypto": "0.0.20", | ||
"@harmony-js/network": "0.0.20", | ||
"@harmony-js/transaction": "0.0.20", | ||
"@harmony-js/utils": "0.0.20" | ||
"@harmony-js/account": "0.0.21", | ||
"@harmony-js/contract": "0.0.21", | ||
"@harmony-js/crypto": "0.0.21", | ||
"@harmony-js/network": "0.0.21", | ||
"@harmony-js/transaction": "0.0.21", | ||
"@harmony-js/utils": "0.0.21" | ||
}, | ||
"gitHead": "5b1841346387f4f3f5822f894d2297ee3bf36554" | ||
"gitHead": "7a51fd2bcccc294bd32f991181f755fdbc88f6e8" | ||
} |
@@ -268,22 +268,22 @@ // tslint:disable-next-line: no-implicit-dependencies | ||
}); | ||
// it('test get transaction receipt', async () => { | ||
// const bc = new Blockchain(messenger); | ||
// const mockRpcResponse = { | ||
// jsonrpc: '2.0', | ||
// id: 1, | ||
// result: '0xd3c21bcecceda1000000', | ||
// }; | ||
// // set mocks to test methods | ||
// runMocks(mockRpcResponse, 2); | ||
it('test get transaction receipt', async () => { | ||
const bc = new Blockchain(messenger); | ||
const mockRpcResponse = { | ||
jsonrpc: '2.0', | ||
id: 1, | ||
result: '0xd3c21bcecceda1000000', | ||
}; | ||
// set mocks to test methods | ||
runMocks(mockRpcResponse, 2); | ||
// const res1 = await bc.getBalance({ | ||
// address: '0x15a128e599b74842bccba860311efa92991bffb5', | ||
// blockNumber: '0x1', | ||
// }); | ||
// expect(res1).toEqual('0xd3c21bcecceda1000000'); | ||
// const res2 = await bc.getBalance({ | ||
// address: '0x15a128e599b74842bccba860311efa92991bffb5', | ||
// }); | ||
// expect(res2).toEqual('0xd3c21bcecceda1000000'); | ||
// }); | ||
const res1 = await bc.getBalance({ | ||
address: '0x15a128e599b74842bccba860311efa92991bffb5', | ||
blockNumber: '0x1', | ||
}); | ||
expect(res1.result).toEqual('0xd3c21bcecceda1000000'); | ||
const res2 = await bc.getBalance({ | ||
address: '0x15a128e599b74842bccba860311efa92991bffb5', | ||
}); | ||
expect(res2.result).toEqual('0xd3c21bcecceda1000000'); | ||
}); | ||
}); |
268983
+ Added@harmony-js/account@0.0.21(transitive)
+ Added@harmony-js/contract@0.0.21(transitive)
+ Added@harmony-js/crypto@0.0.21(transitive)
+ Added@harmony-js/network@0.0.21(transitive)
+ Added@harmony-js/transaction@0.0.21(transitive)
+ Added@harmony-js/utils@0.0.21(transitive)
- Removed@harmony-js/account@0.0.20(transitive)
- Removed@harmony-js/contract@0.0.20(transitive)
- Removed@harmony-js/crypto@0.0.20(transitive)
- Removed@harmony-js/network@0.0.20(transitive)
- Removed@harmony-js/transaction@0.0.20(transitive)
- Removed@harmony-js/utils@0.0.20(transitive)
Updated@harmony-js/account@0.0.21
Updated@harmony-js/contract@0.0.21
Updated@harmony-js/crypto@0.0.21
Updated@harmony-js/network@0.0.21
Updated@harmony-js/utils@0.0.21