Show ETH value input for payable methods (fix for solidity v0.6x) (#1717)
This commit is contained in:
parent
0f592111e9
commit
89c7482344
|
@ -64,5 +64,5 @@ export const extractUsefulMethods = (abi: AbiItem[]): AbiItemExtended[] => {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const isPayable = (method: AbiItem | AbiItemExtended): boolean => {
|
export const isPayable = (method: AbiItem | AbiItemExtended): boolean => {
|
||||||
return !!method?.payable
|
return Boolean(method?.payable) || method.stateMutability === 'payable'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue