mirror of
https://github.com/status-im/safe-react.git
synced 2025-01-27 09:54:51 +00:00
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 => {
|
||||
return !!method?.payable
|
||||
return Boolean(method?.payable) || method.stateMutability === 'payable'
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user