Skip to content

Commit 4164681

Browse files
committed
add some assertion in onchain test
1 parent 78286b6 commit 4164681

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

test/onChain/testBaseSepolia.sol

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,19 @@ contract TestBaseSepolia is Test {
2121
// Set up the state required for the test (if needed)
2222
// For example, simulate a user address
2323
uint256 balanceBefore = utilityToken.balanceOf(0x588A7E62547CB573084C8608486d60E567c573d0);
24-
24+
2525
address sender = 0x588A7E62547CB573084C8608486d60E567c573d0;
2626
uint256 amount = 2000000000000000000;
2727
bytes32 nonce = bytes32(0x45a6cd4929f515c60c82473f16bc1fad9e8b95c04e18e76c7dfc9a6548cb5b60);
2828
uint256 timestamp = 1727871292;
29-
bytes memory signature = hex"bc9dd8b708b7ad5dd8dd68e422cd6b44ac6f6aebeabad4c1e52a1942e267c3af36e5d9aafff7fd8657444991613de3276a308bc858cc8e91e28f58142ff34faa1b";
29+
bytes memory signature =
30+
hex"bc9dd8b708b7ad5dd8dd68e422cd6b44ac6f6aebeabad4c1e52a1942e267c3af36e5d9aafff7fd8657444991613de3276a308bc858cc8e91e28f58142ff34faa1b";
3031

3132
address exchanger = 0x5aB0ffF1a51ee78F67247ac0B90C8c1f1f54c37F;
3233
vm.startPrank(exchanger);
3334

34-
3535
// Call the exchange function
36-
votingPowerExchange.exchange(
37-
sender,
38-
amount,
39-
nonce,
40-
timestamp,
41-
signature
42-
);
36+
votingPowerExchange.exchange(sender, amount, nonce, timestamp, signature);
4337
vm.stopPrank();
4438

4539
// Make assertions to verify the results

0 commit comments

Comments
 (0)