diff --git a/foundry.toml b/foundry.toml index 37fecfd..e142fae 100644 --- a/foundry.toml +++ b/foundry.toml @@ -31,6 +31,7 @@ runs = 10 mainnet = "${MAINNET_RPC}" sepolia = "${SEPOLIA_RPC}" optimism-sepolia = "${OPTIMISM_SEPOLIA_RPC}" +arb-sepolia = "${ARBITRUM_SEPOLIA_RPC}" [etherscan] mainnet = { key = "${ETHERSCAN_API_KEY}", chain = "mainnet" } diff --git a/package.json b/package.json index 495c79c..68022f3 100644 --- a/package.json +++ b/package.json @@ -26,8 +26,10 @@ "lint:sol-tests": "solhint -c .solhint.tests.json 'test/**/*.sol'", "prepare": "husky install", "test": "TESTING=true FORKED_NETWORK=mainnet FORK_BLOCK=18920905 forge test -vvv ", + "test:arbitrum-sepolia": "TESTING=true FORKED_NETWORK=arb-sepolia FORK_BLOCK=98684306 forge test -vvv ", "test:fuzz": "echidna test/invariants/fuzz/Greeter.t.sol --contract InvariantGreeter --corpus-dir test/invariants/fuzz/echidna_coverage/ --test-mode assertion", "test:integration": "forge test --match-contract Integration -vvv", + "test:optimism-sepolia": "TESTING=true FORKED_NETWORK=optimism-sepolia FORK_BLOCK=20113040 forge test -vvv ", "test:symbolic": "halmos", "test:unit": "forge test --match-contract Unit -vvv", "test:unit:deep": "FOUNDRY_FUZZ_RUNS=5000 yarn test:unit" diff --git a/test/integration/Grateful.t.sol b/test/integration/Grateful.t.sol index 8ead4cc..c92ea7a 100644 --- a/test/integration/Grateful.t.sol +++ b/test/integration/Grateful.t.sol @@ -50,7 +50,7 @@ contract IntegrationGrateful is IntegrationBase { IERC20 token = IERC20(tokenAddr); // Flow correctly works only if vault has any deposit - _approveAndPay(_user, _user2, tokenAddr, 1, _YIELDING_FUNDS); + _approveAndPay(_user, _user2, tokenAddr, amount, _YIELDING_FUNDS); // Capture owner's initial balance before payment uint256 ownerInitialBalance = token.balanceOf(_owner);