Support nonpayable Solidity modifier in ABI.

This commit is contained in:
Richard Moore 2020-06-12 04:41:53 -04:00
parent 693094e97c
commit adc8d3d9ae
No known key found for this signature in database
GPG Key ID: 665176BE8E9DC651

@ -606,6 +606,10 @@ function parseModifiers(value: string, params: any): void {
params.payable = true;
params.stateMutability = "payable";
break;
case "nonpayable":
params.payable = false;
params.stateMutability = "nonpayable";
break;
case "pure":
params.constant = true;
params.stateMutability = "pure";