Skip to content

Commit

Permalink
Fixed typos in JSON ABI formatting (#1275).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Feb 3, 2021
1 parent fd0cf2c commit 73b31b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/abi/src.ts/fragments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
});
Expand Down Expand Up @@ -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))),
});
}

Expand Down

0 comments on commit 73b31b3

Please sign in to comment.