From adc8d3d9aec2f5ee8e207f8bc77d99052e473d16 Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Fri, 12 Jun 2020 04:41:53 -0400 Subject: [PATCH] Support nonpayable Solidity modifier in ABI. --- packages/abi/src.ts/fragments.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/abi/src.ts/fragments.ts b/packages/abi/src.ts/fragments.ts index ead03844f..f32238707 100644 --- a/packages/abi/src.ts/fragments.ts +++ b/packages/abi/src.ts/fragments.ts @@ -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";