Added public and stateMutability for payable to ABI coder.
This commit is contained in:
parent
640ed5dc33
commit
73486d6f39
@ -258,6 +258,7 @@ function parseSignatureFunction(fragment: string): FunctionFragment {
|
|||||||
break;
|
break;
|
||||||
case 'payable':
|
case 'payable':
|
||||||
abi.payable = true;
|
abi.payable = true;
|
||||||
|
abi.stateMutability = 'payable';
|
||||||
break;
|
break;
|
||||||
case 'pure':
|
case 'pure':
|
||||||
abi.constant = true;
|
abi.constant = true;
|
||||||
@ -267,6 +268,7 @@ function parseSignatureFunction(fragment: string): FunctionFragment {
|
|||||||
abi.constant = true;
|
abi.constant = true;
|
||||||
abi.stateMutability = 'view';
|
abi.stateMutability = 'view';
|
||||||
break;
|
break;
|
||||||
|
case 'public':
|
||||||
case '':
|
case '':
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user