Skip to content

Commit

Permalink
test(sol): add a test for custom paths
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes committed Aug 21, 2024
1 parent defe556 commit 6ab02a1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions crates/sol-types/tests/macros/sol/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -999,3 +999,17 @@ fn regression_overloads() {
let _ = Vm::getNonce_1Return { nonce: 0 };
assert_eq!(Vm::getNonce_1Call::SIGNATURE, "getNonce((uint256))");
}

#[test]
fn normal_paths() {
sol! {
interface I {
struct S {
uint x;
}
}
function func(I.S memory stuff);
}

let _ = funcCall { stuff: I::S { x: U256::ZERO } };
}

0 comments on commit 6ab02a1

Please sign in to comment.