Skip to content

Commit b68d7d6

Browse files
committed
codegen/abi: Fix parent type of input argument types
1 parent 494ecc5 commit b68d7d6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/codegen/abi.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ module.exports = class AbiCodeGenerator {
489489
let params = inputs.map((input, index) =>
490490
tsCodegen.param(
491491
input.get('name'),
492-
this._getTupleParamType(input, index, tupleResultParentType),
492+
this._getTupleParamType(input, index, tupleInputParentType),
493493
),
494494
)
495495

@@ -585,15 +585,15 @@ module.exports = class AbiCodeGenerator {
585585
return [...types, klass]
586586
}
587587

588-
_getTupleParamType(inputOrOutput, index, tupleResultParentType) {
588+
_getTupleParamType(inputOrOutput, index, tupleParentType) {
589589
const type = inputOrOutput.get('type')
590590
return util.isTupleType(type)
591-
? this._tupleTypeName(inputOrOutput, index, tupleResultParentType, this.abi.name)
591+
? this._tupleTypeName(inputOrOutput, index, tupleParentType, this.abi.name)
592592
: util.isTupleArrayType(type)
593593
? `Array<${this._tupleTypeName(
594594
inputOrOutput,
595595
index,
596-
tupleResultParentType,
596+
tupleParentType,
597597
this.abi.name,
598598
)}>`
599599
: typesCodegen.ascTypeForEthereum(type)

0 commit comments

Comments
 (0)