Skip to content

Commit

Permalink
add some assertion in onchain test
Browse files Browse the repository at this point in the history
  • Loading branch information
thurendous committed Sep 25, 2024
1 parent 78286b6 commit 4164681
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions test/onChain/testBaseSepolia.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,19 @@ contract TestBaseSepolia is Test {
// Set up the state required for the test (if needed)
// For example, simulate a user address
uint256 balanceBefore = utilityToken.balanceOf(0x588A7E62547CB573084C8608486d60E567c573d0);

address sender = 0x588A7E62547CB573084C8608486d60E567c573d0;
uint256 amount = 2000000000000000000;
bytes32 nonce = bytes32(0x45a6cd4929f515c60c82473f16bc1fad9e8b95c04e18e76c7dfc9a6548cb5b60);
uint256 timestamp = 1727871292;
bytes memory signature = hex"bc9dd8b708b7ad5dd8dd68e422cd6b44ac6f6aebeabad4c1e52a1942e267c3af36e5d9aafff7fd8657444991613de3276a308bc858cc8e91e28f58142ff34faa1b";
bytes memory signature =
hex"bc9dd8b708b7ad5dd8dd68e422cd6b44ac6f6aebeabad4c1e52a1942e267c3af36e5d9aafff7fd8657444991613de3276a308bc858cc8e91e28f58142ff34faa1b";

address exchanger = 0x5aB0ffF1a51ee78F67247ac0B90C8c1f1f54c37F;
vm.startPrank(exchanger);


// Call the exchange function
votingPowerExchange.exchange(
sender,
amount,
nonce,
timestamp,
signature
);
votingPowerExchange.exchange(sender, amount, nonce, timestamp, signature);
vm.stopPrank();

// Make assertions to verify the results
Expand Down

0 comments on commit 4164681

Please sign in to comment.