From 10e54208d58fbec6fd2704e8c4b7697e962106fe Mon Sep 17 00:00:00 2001 From: Karl Bartel Date: Fri, 27 Oct 2023 09:13:10 +0200 Subject: [PATCH] Fix tests after changes in cast See https://github.com/foundry-rs/foundry/issues/6135 --- e2e_test/test_fee_currency.sh | 4 ++-- e2e_test/test_token_duality.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/e2e_test/test_fee_currency.sh b/e2e_test/test_fee_currency.sh index e2dee2b033..dd095fa74e 100755 --- a/e2e_test/test_fee_currency.sh +++ b/e2e_test/test_fee_currency.sh @@ -6,8 +6,8 @@ set -x source shared.sh # Add our account as oracle and submit value -cast send --private-key $ACC_PRIVKEY $SORTED_ORACLES_ADDR 'function addOracle(address token, address oracleAddress) external' $FEE_CURRENCY $ACC_ADDR -cast send --private-key $ACC_PRIVKEY $SORTED_ORACLES_ADDR 'function report(address token, uint256 value, address lesserKey, address greaterKey) external' $FEE_CURRENCY $FIXIDITY_1 $ZERO_ADDRESS $ZERO_ADDRESS +cast send --private-key $ACC_PRIVKEY $SORTED_ORACLES_ADDR 'addOracle(address token, address oracleAddress)' $FEE_CURRENCY $ACC_ADDR +cast send --private-key $ACC_PRIVKEY $SORTED_ORACLES_ADDR 'report(address token, uint256 value, address lesserKey, address greaterKey)' $FEE_CURRENCY $FIXIDITY_1 $ZERO_ADDRESS $ZERO_ADDRESS # Debug suggestions: # cast call $FEE_CURRENCY_WHITELIST_ADDR 'function getWhitelist() external view returns (address[] memory)' diff --git a/e2e_test/test_token_duality.sh b/e2e_test/test_token_duality.sh index abb8fd9e78..355afef8c7 100755 --- a/e2e_test/test_token_duality.sh +++ b/e2e_test/test_token_duality.sh @@ -6,7 +6,7 @@ source shared.sh # Send token and check balance balance_before=$(cast balance 0x000000000000000000000000000000000000dEaD) -cast send --private-key $ACC_PRIVKEY $TOKEN_ADDR 'function transfer(address to, uint256 value) external returns (bool)' 0x000000000000000000000000000000000000dEaD 100 +cast send --private-key $ACC_PRIVKEY $TOKEN_ADDR 'transfer(address to, uint256 value) returns (bool)' 0x000000000000000000000000000000000000dEaD 100 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)