abi-gen: fix bug w/ 2D arrays of UDT's in Python
Fix bug in handling 2-dimensional arrays of user defined data types in generated Python code.
This commit is contained in:
parent
6027d0481e
commit
9cdc62f918
@ -195,7 +195,7 @@ export const utils = {
|
|||||||
return tuple.internalType
|
return tuple.internalType
|
||||||
.replace('struct ', '')
|
.replace('struct ', '')
|
||||||
.replace('.', '')
|
.replace('.', '')
|
||||||
.replace('[]', '');
|
.replace(/\[\]/g, '');
|
||||||
} else {
|
} else {
|
||||||
const tupleComponents = tuple.components;
|
const tupleComponents = tuple.components;
|
||||||
const lengthOfHashSuffix = 8;
|
const lengthOfHashSuffix = 8;
|
||||||
|
File diff suppressed because one or more lines are too long
@ -138,6 +138,8 @@ contract AbiGenDummy
|
|||||||
}
|
}
|
||||||
|
|
||||||
function methodReturningArrayOfStructs() public pure returns(Struct[] memory) {}
|
function methodReturningArrayOfStructs() public pure returns(Struct[] memory) {}
|
||||||
|
function methodAcceptingArrayOfStructs(Struct[] memory) public pure {}
|
||||||
|
function methodAcceptingArrayOfArrayOfStructs(Struct[][] memory) public pure {}
|
||||||
|
|
||||||
struct NestedStruct {
|
struct NestedStruct {
|
||||||
Struct innerStruct;
|
Struct innerStruct;
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user