Fix invalid token nonpayable being included in formatted constructor (#4412).

This commit is contained in:
Richard Moore 2023-11-01 15:56:47 -04:00
parent 1da50ae286
commit 2e0bd90744

@ -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(" ");
}