Fail to create contract instance from Contract with non-payable and non-constant function in ethers v5.0-beta #762
Labels
bug
Verified to be an issue.
fixed/complete
This Bug is fixed or Enhancement is complete and published.
I am attempting to create an instance of a
UniswapExchange
contract though am getting the following errorthrown here in verifyState.
The UniswapExchange contract has a non-payable, non-constant function called setup called once in the lifetime of the contract.
verifyState
seems to be asserting that a contract must either be payable, or be constant, but I believe (still learning a lot) it is valid for a contract function to be both non-payable and non-constant.verifyState sets
result.constant
to!result.payable
hereFor reference, here is the deployed Uniswap MKR exchange contract
https://etherscan.io/address/0x2C4Bd064b998838076fa341A83d007FC2FA50957
The text was updated successfully, but these errors were encountered: