Skip to content

Commit 5334738

Browse files
committed
update web3 dependencies to the latest version for solving event string index bug
1 parent 732ed95 commit 5334738

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
},
99
"dependencies": {
1010
"bignumber.js": "^2.4.0",
11+
"chainsql-keypairs": "^0.10.4",
1112
"co": "^4.6.0",
1213
"elliptic": "^5.1.0",
1314
"hash.js": "^1.0.3",
@@ -16,9 +17,9 @@
1617
"sjcl": "~1.0.3",
1718
"ws": "^2.2.2",
1819
"protobufjs": "^6.8.0",
19-
"web3-eth-abi": "1.0.0-beta.34",
20-
"web3-utils": "1.0.0-beta.34",
21-
"web3-core-helpers": "1.0.0-beta.34"
20+
"web3-core-helpers": "1.0.0-beta.36",
21+
"web3-eth-abi": "1.0.0-beta.36",
22+
"web3-utils": "1.0.0-beta.36",
2223
},
2324
"repository": {
2425
"type": "git",

solidity-example/solidity-example.sol

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
pragma solidity ^0.4.4;
22

33
contract test {
4-
event multiplylog(address sender, uint indexed number, uint result);
4+
//event multiplylog(address sender, uint indexed number, uint result);
5+
event multiplylog(address sender, string indexed testStr, uint result);
56
//event memChangelog(uint mem);
67
uint mem;
78

89
constructor () public payable {}
910

1011
function multiply(uint a) public returns(uint d){
1112
uint result = a * 7;
12-
emit multiplylog(msg.sender, a, result);
13+
emit multiplylog(msg.sender, "hello,tester", result);
1314
return result;
1415
}
1516

0 commit comments

Comments
 (0)