Fixed typos in JSON ABI formatting (#1275).
This commit is contained in:
parent
fd0cf2cc54
commit
73b31b371f
@ -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))),
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user