New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@harmony-js/core

Package Overview
Dependencies
Maintainers
1
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@harmony-js/core - npm Package Compare versions

Comparing version 0.0.20 to 0.0.21

16

package.json
{
"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');
});
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc