2
0
mirror of synced 2025-02-24 20:18:07 +00:00

Added public and stateMutability for payable to ABI coder.

This commit is contained in:
Richard Moore 2018-07-26 16:58:31 -04:00
parent 640ed5dc33
commit 73486d6f39
No known key found for this signature in database
GPG Key ID: 525F70A6FCABC295

View File

@ -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: