-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
T-bugType: bugType: bugT-needs-triageType: this issue needs to be labelledType: this issue needs to be labelled
Description
Component
Forge
Have you ensured that all of these are up to date?
- Foundry
- Foundryup
What version of Foundry are you on?
a34f4c9 - 2025-05-07T06:03:25.519732500Z
What version of Foundryup are you on?
1.1.0
What command(s) is the bug in?
forge script
Operating System
Windows
Describe the bug
I'm having some issues with 7702 Txs.
Using Blockscout I've noticed that the error is "out of gas"
I've pushed the simple repo to github, goal is to try all possible ways to rescue funds from hacked wallets via 7702 but I've found this issue at the first script launch.
Tests are all fine, even the test of the script itself or by forking ETH.
https://github.com/krakovia-evm/ERC7702Recovery
forge script .\script\RecoveryTool.s.sol:RecoveryExecution -f localhost --broadcast
Warning: This is a nightly build of Foundry. It is recommended to use the latest stable version. Visit https://book.getfoundry.sh/announcements for more information.
To mute this warning set `FOUNDRY_DISABLE_NIGHTLY_WARNING` in your environment.
[⠊] Compiling...
No files changed, compilation skipped
Script ran successfully.
== Logs ==
Starting recovery process
Victim account nonce: 0
Safe account nonce: 4
Recovery completed
Victim account nonce after recovery: 1
Safe account nonce after recovery: 7
## Setting up 1 EVM.
Warning: Script contains a transaction to 0x5C515643002DaA48f5eA6ff9A38d7D0B93476733 which does not contain any code.
Do you wish to continue? yes
Warning: Script contains a transaction to 0x5C515643002DaA48f5eA6ff9A38d7D0B93476733 which does not contain any code.
Do you wish to continue? yes
Warning: Script contains a transaction to 0x5C515643002DaA48f5eA6ff9A38d7D0B93476733 which does not contain any code.
Do you wish to continue? yes
==========================
Chain 31337
Estimated gas price: 1.556198451 gwei
Estimated total gas used for script: 178817
Estimated amount required: 0.000278274738412467 ETH
==========================
##### anvil-hardhat
✅ [Success] Hash: 0xcb28fe45e5ed140dec7b2e4c35896ca65467c819c1024cabb256e374b83d4d67
Block: 4
Paid: 0.000055035448818488 ETH (78124 gas * 0.704462762 gwei)
##### anvil-hardhat
❌ [Failed] Hash: 0xbf547684ce7c3720c0d33db45db78adf3709e3d0f1f0c57a0edb26b8beb46662
Block: 6
Paid: 0.000019774969615375 ETH (36625 gas * 0.539930911 gwei)
##### anvil-hardhat
❌ [Failed] Hash: 0x1c2f176ce9585007add6bc4214f6928af199f51ea700708ad65b6326f81a10c4
Block: 5
Paid: 0.000021036897509238 ETH (34103 gas * 0.616863546 gwei)
Metadata
Metadata
Assignees
Labels
T-bugType: bugType: bugT-needs-triageType: this issue needs to be labelledType: this issue needs to be labelled
Type
Projects
Status
Done