Skip to content

Commit 619f6db

Browse files
pacrobpacrob
authored andcommitted
wip
1 parent 244099f commit 619f6db

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

tests/core/utilities/test_abi_named_tree.py

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,43 @@
2424
[[(14, 15), (16, 17)], [(18, 19)]], # Value for b
2525
)
2626

27+
sample_abi_inputs = {
28+
"inputs": [
29+
{
30+
"components": [
31+
{"name": "a", "type": "uint256"},
32+
{"name": "b", "type": "uint256[]"},
33+
{
34+
"components": [
35+
{"name": "x", "type": "uint256"},
36+
{"name": "y", "type": "uint256"},
37+
],
38+
"name": "c",
39+
"type": "tuple[]",
40+
},
41+
],
42+
"name": "s",
43+
"type": "tuple",
44+
},
45+
{
46+
"components": [
47+
{"name": "x", "type": "uint256"},
48+
{"name": "y", "type": "uint256"},
49+
],
50+
"name": "t",
51+
"type": "tuple",
52+
},
53+
{"name": "a", "type": "uint256"},
54+
{
55+
"components": [
56+
{"name": "x", "type": "uint256"},
57+
{"name": "y", "type": "uint256"},
58+
],
59+
"name": "b",
60+
"type": "tuple[][]",
61+
},
62+
]
63+
}
2764

2865
def test_named_arguments_decode():
2966
decoded = named_tree(abi, inputs)

0 commit comments

Comments
 (0)