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

missing property in ethers overrides - blockTag #43

Open
TJakubek opened this issue Aug 11, 2022 · 3 comments
Open

missing property in ethers overrides - blockTag #43

TJakubek opened this issue Aug 11, 2022 · 3 comments

Comments

@TJakubek
Copy link

hey bud,

first off - big fan, great project.

Not 100% sure as I've yet to test it out but I think the type 'ContractCallOverrides' is missing a property for ethers_v5.
According to documentation there should also be a property 'blockTag' in the overrides, which allows querying data from a specific block (if your endpoint allows it).

So for example querying a balance could look like this:

const balance = await token.balanceOf('0xSuperGreatAddress', { blockTag: 12345 })

@joshstevens19
Copy link
Owner

Nice! Think I need to upgrade to latest ethers as some other stuff is not pulled though in the typings.. FYI that call would work the typings are just missing I will sort thanks for raising

@TJakubek
Copy link
Author

sure, have it working, just dont want to override types 😅
keep up the good work, I will keep an eye out for the update

@joshstevens19
Copy link
Owner

I hit this myself today will update the repo to fix this sorry for delay

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

No branches or pull requests

2 participants