Skip to content

Commit

Permalink
Fix invalid token nonpayable being included in formatted constructor (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Nov 1, 2023
1 parent 1da50ae commit 2e0bd90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src.ts/abi/fragments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1247,7 +1247,7 @@ export class ConstructorFragment extends Fragment {
}

const result = [ `constructor${ joinParams(format, this.inputs) }` ];
result.push((this.payable) ? "payable": "nonpayable");
if (this.payable) { result.push("payable"); }
if (this.gas != null) { result.push(`@${ this.gas.toString() }`); }
return result.join(" ");
}
Expand Down

0 comments on commit 2e0bd90

Please sign in to comment.