Fix invalid token nonpayable being included in formatted constructor (#4412).
This commit is contained in:
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(" ");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user