Skip to content

Commit

Permalink
test: add another dyn-abi test
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes committed Sep 18, 2024
1 parent 022c63d commit fa273d7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/core/tests/sol.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#![cfg(feature = "sol-types")]
#![allow(missing_docs)]

use alloy_core::sol;

Expand Down
15 changes: 15 additions & 0 deletions crates/dyn-abi/src/dynamic/ty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1020,6 +1020,21 @@ re-enc: {re_enc}
0000000000000000000000000000000000000000000000000000000000000042
0000000000000000000000000000000000000000000000000000000000001337
"),

// https://github.com/foundry-rs/book/issues/1286
tuple_array("((uint256,)[],uint256)", "
0000000000000000000000000000000000000000000000000000000000000040
000000000000000000000000000000000000000000000000000000000000007b
0000000000000000000000000000000000000000000000000000000000000001
0000000000000000000000000000000000000000000000000000000000000001
"),
nested_tuple_array("(((uint256,)[],uint256),)", "
0000000000000000000000000000000000000000000000000000000000000020
0000000000000000000000000000000000000000000000000000000000000040
000000000000000000000000000000000000000000000000000000000000007b
0000000000000000000000000000000000000000000000000000000000000001
0000000000000000000000000000000000000000000000000000000000000001
"),
}

// https://github.com/alloy-rs/core/issues/392
Expand Down

0 comments on commit fa273d7

Please sign in to comment.