Skip to content

Commit 73b31b3

Browse files
committed
Fixed typos in JSON ABI formatting (#1275).
1 parent fd0cf2c commit 73b31b3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/abi/src.ts/fragments.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ export class ConstructorFragment extends Fragment {
720720
return JSON.stringify({
721721
type: "constructor",
722722
stateMutability: ((this.stateMutability !== "nonpayable") ? this.stateMutability: undefined),
723-
payble: this.payable,
723+
payable: this.payable,
724724
gas: (this.gas ? this.gas.toNumber(): undefined),
725725
inputs: this.inputs.map((input) => JSON.parse(input.format(format)))
726726
});
@@ -817,10 +817,10 @@ export class FunctionFragment extends ConstructorFragment {
817817
name: this.name,
818818
constant: this.constant,
819819
stateMutability: ((this.stateMutability !== "nonpayable") ? this.stateMutability: undefined),
820-
payble: this.payable,
820+
payable: this.payable,
821821
gas: (this.gas ? this.gas.toNumber(): undefined),
822822
inputs: this.inputs.map((input) => JSON.parse(input.format(format))),
823-
ouputs: this.outputs.map((output) => JSON.parse(output.format(format))),
823+
outputs: this.outputs.map((output) => JSON.parse(output.format(format))),
824824
});
825825
}
826826

0 commit comments

Comments
 (0)