test: add large tuple test (#1642)

This commit is contained in:
Matthias Seitz 2022-08-30 02:03:12 +02:00 committed by GitHub
parent edc00054b1
commit 6e6d827f1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 93 additions and 0 deletions

View File

@ -689,3 +689,8 @@ fn gen_complex_function() {
]"#, ]"#,
); );
} }
#[test]
fn can_gen_large_tuple_types() {
abigen!(LargeTuple, "./tests/solidity-contracts/large_tuple.json");
}

View File

@ -0,0 +1,88 @@
[
{
"inputs": [
{
"internalType": "uint160",
"name": "input",
"type": "uint160"
}
],
"name": "doSomething",
"outputs": [
{
"components": [
{
"internalType": "bytes",
"name": "output1",
"type": "bytes"
},
{
"internalType": "bytes",
"name": "output2",
"type": "bytes"
},
{
"internalType": "bytes",
"name": "output3",
"type": "bytes"
},
{
"internalType": "bytes",
"name": "output4",
"type": "bytes"
},
{
"internalType": "bytes",
"name": "output5",
"type": "bytes"
},
{
"internalType": "bytes",
"name": "output6",
"type": "bytes"
},
{
"internalType": "bytes",
"name": "output7",
"type": "bytes"
},
{
"internalType": "bytes",
"name": "output8",
"type": "bytes"
},
{
"internalType": "bytes",
"name": "output9",
"type": "bytes"
},
{
"internalType": "bytes",
"name": "output10",
"type": "bytes"
},
{
"internalType": "bytes",
"name": "output11",
"type": "bytes"
},
{
"internalType": "bytes",
"name": "output12",
"type": "bytes"
},
{
"internalType": "bytes",
"name": "output13",
"type": "bytes"
}
],
"internalType": "struct Contract.Response",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
}
]