Fixed typos in JSON ABI formatting (#1275).

This commit is contained in:
Richard Moore 2021-02-03 14:26:10 -05:00
parent fd0cf2cc54
commit 73b31b371f
No known key found for this signature in database
GPG Key ID: 665176BE8E9DC651

@ -720,7 +720,7 @@ export class ConstructorFragment extends Fragment {
return JSON.stringify({
type: "constructor",
stateMutability: ((this.stateMutability !== "nonpayable") ? this.stateMutability: undefined),
payble: this.payable,
payable: this.payable,
gas: (this.gas ? this.gas.toNumber(): undefined),
inputs: this.inputs.map((input) => JSON.parse(input.format(format)))
});
@ -817,10 +817,10 @@ export class FunctionFragment extends ConstructorFragment {
name: this.name,
constant: this.constant,
stateMutability: ((this.stateMutability !== "nonpayable") ? this.stateMutability: undefined),
payble: this.payable,
payable: this.payable,
gas: (this.gas ? this.gas.toNumber(): undefined),
inputs: this.inputs.map((input) => JSON.parse(input.format(format))),
ouputs: this.outputs.map((output) => JSON.parse(output.format(format))),
outputs: this.outputs.map((output) => JSON.parse(output.format(format))),
});
}