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

Support call functions at block number #17

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

Conversation

vinhnd2010
Copy link

Pass BlockNumber value at the last of params list.
Ex:

# creation of contract object
myContract = web3.eth.contract(abi);

# initiate contract for an address
myContractInstance = myContract.at('0x2ad180cbaffbc97237f572148fc1b283b68d8861');

# call constant function at block_number
result = myContractInstance.balanceOf([address], [block_number]); 
puts result 

@vinhnd2010
Copy link
Author

vinhnd2010 commented Jun 21, 2018

@astudnev Please have a look. This PR solves the issue #16.
Thanks!

Copy link
Contributor

@astudnev astudnev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets not mix args and options of call.
Please make a separate optional parameter, otherwise we will have a conflict in args with options

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.

2 participants