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

allow to set an ethereum block number in Web3::Eth::Rpc #2

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

donpdonp
Copy link

@donpdonp donpdonp commented Dec 14, 2020

This patch sets a variable in Rpc to use a specific block number when calling the web3 service. It can be updated after the Rpc class is built. My use case is I want to look at a contract function return value for a specific block, then see how it has changed in the next block.

WEB3 = Web3::Eth::Rpc.new host: 'mainnet.infura.io', 
                          port: 443,  
                          block: 11453808

also replaces rails try with 'safe navigation' &.

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.

1 participant