Replies: 2 comments
-
It is exported, can you try the following? import type {
CallOverrides, // for view / pure methods
Overrides, // for non payable methods
PayableOverrides // for payable methods
} from "ethers"; |
Beta Was this translation helpful? Give feedback.
0 replies
-
@zemse Nice, it works. Thank you! This issue should be re-labeled to only being a documentation issue. Unfortunately, I can't do that. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the Feature
When invoking a contract function, an overrides object may optionally be passed as the last argument (e.g. to set the gas price). It would be nice to have a type for the overrides so it can be used in typescript without using
any
.Furthermore, the documentation on this currently is wrong/incomplete. Neither https://docs.ethers.io/v5/api/contract/contract/#contract-functionsSend nor https://docs.ethers.io/v5/api/contract/contract/#Contract-functionsCall specify that
maxFeePerGas
andmaxPriorityFeePerGas
may be overridden, but overriding them does work.Code Example
No response
Beta Was this translation helpful? Give feedback.
All reactions