Skip to content

Commit

Permalink
test: ensure solution settler is called in bcowpool transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
0xteddybear committed Jul 17, 2024
1 parent ac4399e commit 7c89b62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/unit/BCoWPool/BCoWPool.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ contract BCoWPool is BCoWPoolBase {
assumeNotForgeAddress(_settler);
vm.mockCall(_settler, abi.encodePacked(ISettlement.domainSeparator.selector), abi.encode(_separator));
vm.mockCall(_settler, abi.encodePacked(ISettlement.vaultRelayer.selector), abi.encode(_relayer));
// it should ask the solution settler for the domain separator
vm.expectCall(_settler, abi.encodePacked(ISettlement.domainSeparator.selector));
// it should ask the solution settler for the vault relayer
vm.expectCall(_settler, abi.encodePacked(ISettlement.vaultRelayer.selector));
MockBCoWPool pool = new MockBCoWPool(_settler, _appData);
// it should set the solution settler
assertEq(address(pool.SOLUTION_SETTLER()), _settler);
Expand Down
2 changes: 2 additions & 0 deletions test/unit/BCoWPool/BCoWPool.tree
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
BCoWPool::Constructor
└── when called
├── it should set the solution settler
├── it should ask the solution settler for the domain separator
├── it should set the domain separator
├── it should ask the solution settler for the vault relayer
├── it should set the vault relayer
└── it should set the app data

Expand Down

0 comments on commit 7c89b62

Please sign in to comment.