Skip to content

Commit 2e0bd90

Browse files
committed
Fix invalid token nonpayable being included in formatted constructor (#4412).
1 parent 1da50ae commit 2e0bd90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src.ts/abi/fragments.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1247,7 +1247,7 @@ export class ConstructorFragment extends Fragment {
12471247
}
12481248

12491249
const result = [ `constructor${ joinParams(format, this.inputs) }` ];
1250-
result.push((this.payable) ? "payable": "nonpayable");
1250+
if (this.payable) { result.push("payable"); }
12511251
if (this.gas != null) { result.push(`@${ this.gas.toString() }`); }
12521252
return result.join(" ");
12531253
}

0 commit comments

Comments
 (0)