This add the types necessary to support geth eth_calls in web3-wrapper and therefore our generated contract wrappers.
Example:
const erc20 = new IERC20TokenContract(TOKEN_ADDRESS, provider, ...);
erc20.balanceOf(...).callAsync({
overrides: {
// Override some state of `TOKEN_ADDRESS` during this call to `balanceOf()`.
// All fields are optional.
[TOKEN_ADDRESS]: {
// Override deployed bytecode at `TOKEN_ADDRESS`
code: '0x....',
// Override the ETH balance of `TOKEN_ADDRESS`
balance: 12345,
// Override the nonce of `TOKEN_ADDRESS`
nonce: 3,
},
},
});
Testing instructions
Types of changes
Checklist:
[ ] Prefix PR title with [WIP] if necessary.
[ ] Add tests to cover changes as needed.
[ ] Update documentation as needed.
[ ] Add new entries to the relevant CHANGELOG.jsons.
Description
This add the types necessary to support geth eth_calls in
web3-wrapper
and therefore our generated contract wrappers.Example:
Testing instructions
Types of changes
Checklist:
[WIP]
if necessary.