Skip to content
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

Added possible gas estimation for participant registration #180

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Added possible gas estimation for participant registration #180

wants to merge 1 commit into from

Conversation

Flash-Git
Copy link

@Flash-Git Flash-Git commented Aug 19, 2018

I haven't built the project so this addition is untested.

Code based on my own experience with web3 v1.0 and the docs.

If you are not using 1.0 then it looks to be slightly different.

v0.2
contract.myMethod.estimateGas()
https://github.com/ethereum/wiki/wiki/JavaScript-API#web3ethdefaultblock
v1.0
myContract.methods.myMethod([param1[, param2[, ...]]]).estimateGas(options[, callback])
https://web3js.readthedocs.io/en/1.0/web3-eth-contract.html?#contract-estimategas

Hopefully this is helpful.

EDIT: To be clear, this probably isn't functional as is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant