Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
klkvr committed Sep 7, 2024
1 parent d3d3fec commit 47b8cdd
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions crates/sol-types/tests/macros/sol/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1022,32 +1022,32 @@ fn regression_nested_namespaced_structs() {
struct Simple {
uint256 x;
}

struct Nested {
Simple simple;
LibB.Simple[] simpleB;
}
}

library LibB {
struct Simple {
uint256 x;
uint256 y;
}

struct Nested {
Simple simple;
LibA.Simple simpleA;
LibB.Simple simpleB;
}
}

library LibC {
struct Nested1 {
LibA.Nested nestedA;
LibB.Nested nestedB;
}

struct Nested2 {
LibA.Simple simpleA;
LibB.Simple simpleB;
Expand All @@ -1057,7 +1057,7 @@ fn regression_nested_namespaced_structs() {
LibC.Nested1 nestedC2;
}
}

contract C {
function libASimple(LibA.Simple memory simple) public returns(LibA.Simple memory);
function libBSimple(LibB.Simple memory simple) public returns(LibB.Simple memory);
Expand All @@ -1074,13 +1074,13 @@ fn regression_nested_namespaced_structs() {
let a_nested = format!("({a_simple},{b_simple}[])");
let b_nested = format!("({b_simple},{a_simple},{b_simple})");
let c_nested1 = format!("({a_nested},{b_nested})");
let c_nested2 = format!("({a_simple},{b_simple},{a_nested}[],{b_nested},{c_nested1}[],{c_nested1})");
let c_nested2 =
format!("({a_simple},{b_simple},{a_nested}[],{b_nested},{c_nested1}[],{c_nested1})");

assert_eq!(inner::C::libASimpleCall::SIGNATURE, format!("libASimple({a_simple})"));
assert_eq!(inner::C::libBSimpleCall::SIGNATURE, format!("libBSimple({b_simple})"));
assert_eq!(inner::C::libANestedCall::SIGNATURE, format!("libANested({a_nested})"));
assert_eq!(inner::C::libBNestedCall::SIGNATURE, format!("libBNested({b_nested})"));
assert_eq!(inner::C::libCNested1Call::SIGNATURE, format!("libCNested1({c_nested1})"));
assert_eq!(inner::C::libCNested2Call::SIGNATURE, format!("libCNested2({c_nested2})"));

}

0 comments on commit 47b8cdd

Please sign in to comment.