Skip to content

fix - Removing unnecessary code#4

Open
18121A05L2 wants to merge 1 commit intotheredguild:mainfrom
18121A05L2:main
Open

fix - Removing unnecessary code#4
18121A05L2 wants to merge 1 commit intotheredguild:mainfrom
18121A05L2:main

Conversation

@18121A05L2
Copy link

@18121A05L2 18121A05L2 commented Jun 1, 2025

Hi @tinchoabbate , Thanks for creating youtube on this , i was so helpful for me

when i was going through the tests , initially i was confused on this part - address(0).call("") like why this is needed

and after asking AI , it has given me why as below

address(0).call("");
– This is just “any transaction,” with an empty calldata to address 0. It doesn’t do anything on‐chain (it immediately returns false, since there is no code at address 0). However, it does count as “a transaction.” Because of how Foundry’s vm.signAndAttachDelegation(...) works, the next time you send any transaction from that EOA, the VM will first process the signed delegation (i.e. “swap in” delegateContract’s code as if Alice/Bob were their own contract wallets) and then execute the call.

Seems like this has been changed from Foundry side of how vm.signAndAttachDelegation() works

i have tried removing it , still we can able to see all the test cases are passing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant