Support nonpayable Solidity modifier in ABI.
This commit is contained in:
parent
693094e97c
commit
adc8d3d9ae
@ -606,6 +606,10 @@ function parseModifiers(value: string, params: any): void {
|
|||||||
params.payable = true;
|
params.payable = true;
|
||||||
params.stateMutability = "payable";
|
params.stateMutability = "payable";
|
||||||
break;
|
break;
|
||||||
|
case "nonpayable":
|
||||||
|
params.payable = false;
|
||||||
|
params.stateMutability = "nonpayable";
|
||||||
|
break;
|
||||||
case "pure":
|
case "pure":
|
||||||
params.constant = true;
|
params.constant = true;
|
||||||
params.stateMutability = "pure";
|
params.stateMutability = "pure";
|
||||||
|
Loading…
Reference in New Issue
Block a user