Show ETH value input for payable methods (fix for solidity v0.6x) (#1717)

This commit is contained in:
nicolas 2020-12-14 07:01:03 -03:00 committed by GitHub
parent 0f592111e9
commit 89c7482344
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -64,5 +64,5 @@ export const extractUsefulMethods = (abi: AbiItem[]): AbiItemExtended[] => {
}
export const isPayable = (method: AbiItem | AbiItemExtended): boolean => {
return !!method?.payable
return Boolean(method?.payable) || method.stateMutability === 'payable'
}