Skip to content

Commit 1c1b85e

Browse files
committed
Update withdraw tokens script
1 parent 839ecd3 commit 1c1b85e

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

script/counter/WithdrawFeesArbitrumFeesPlug.s.sol

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ contract WithdrawFees is Script {
4949

5050
// Gas price from Arbitrum
5151
uint256 arbitrumGasPrice = block.basefee + 0.1 gwei; // With buffer
52-
uint256 gasLimit = 5_000_000; // Estimate
52+
uint256 gasLimit = 50_000_000_000; // Estimate
5353
uint256 estimatedGasCost = gasLimit * arbitrumGasPrice;
5454

5555
console.log("Arbitrum gas price (wei):", arbitrumGasPrice);
@@ -66,10 +66,6 @@ contract WithdrawFees is Script {
6666
console.log("Withdrawing amount:", amountToWithdraw);
6767
appGateway.withdrawFeeTokens(421614, address(testUSDCContract), amountToWithdraw, sender);
6868
vm.stopBroadcast();
69-
70-
// Switch back to Arbitrum Sepolia to check final balance
71-
vm.createSelectFork(vm.envString("ARBITRUM_SEPOLIA_RPC"));
72-
console.log("Final sender balance:", sender.balance);
7369
} else {
7470
console.log("Available fees less than estimated gas cost");
7571
}

0 commit comments

Comments
 (0)