-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
events refactor #174
events refactor #174
Conversation
Conflicts: dist/web3-light.js.map dist/web3-light.min.js dist/web3.js.map dist/web3.min.js
var typeName = json.inputs.map(function(i){return i.type; }).join(); | ||
return json.name + '(' + typeName + ')'; | ||
}; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would probably call this abi
instead of json
for clarity.
Please see my answers on you comments. Additionally we need to fix the events output to match the docs in event.js line 120 from: var result = {
event: this.displayName(),
number: data.number,
hash: data.hash,
args: {}
}; to: var result = {
event: this.displayName(),
args: {},
logIndex: data.logIndex,
transactionIndex: data.transactionIndex,
transactionHash: data.transactionHash,
address: data.address,
blockHash: data.blockHash,
blockNumber: data.blockNumber
}; And probably run |
Conflicts: dist/web3-light.js.map dist/web3-light.min.js dist/web3.js.map dist/web3.min.js
fields are fixed in latest pr |
now I will do myContract.myFunction.sendTransaction({value: 20});
// and
myContract.myFunction.call(); |
once this pr is merged we will upgrade version to |
Conflicts: dist/web3-light.js dist/web3-light.js.map dist/web3-light.min.js dist/web3.js dist/web3.js.map dist/web3.min.js lib/web3/filter.js
Can we add contract tests which also use the |
EDIT: i take it back, it didn't pull correctly for me. But i think its better to use the proper log output formatter before, than doing it manually in the event.js again. As it is we would need to update two places when we change the log output |
done |
changes
event.js
&&contract.js
refactoredfunction.js