Skip to content

Commit

Permalink
Add sleep in test_token_duality
Browse files Browse the repository at this point in the history
  • Loading branch information
Kourin1996 committed Dec 10, 2024
1 parent 3a49cdd commit a5a4a40
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions e2e_test/test_token_duality.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ source shared.sh
# Send token and check balance
balance_before=$(cast balance 0x000000000000000000000000000000000000dEaD)
cast send --private-key $ACC_PRIVKEY $TOKEN_ADDR 'transfer(address to, uint256 value) returns (bool)' 0x000000000000000000000000000000000000dEaD 100

sleep 5

balance_after=$(cast balance 0x000000000000000000000000000000000000dEaD)
echo "Balance change: $balance_before -> $balance_after"
[[ $((balance_before + 100)) -eq $balance_after ]] || (echo "Balance did not change as expected"; exit 1)

0 comments on commit a5a4a40

Please sign in to comment.