Content pfp
Content
@
https://ethereum.org
0 reply
0 recast
0 reaction

Samuel ツ pfp
Samuel ツ
@samuellhuber.eth
Does any Foundry Chad know why msg.sender sometimes is the DefaultSender and sometimes the default anvil address when not passing a private key or using cast wallet? Would have saved me 2 days to just use cast wallet for all transactions instead of figuring out the defaults when testing. Would love for that to be in the foundry docs and never see raw commands without --account or the default accounts private key as --private-key
2 replies
0 recast
11 reactions

Apex777 pfp
Apex777
@apex777.eth
When testing just Prank as the default wallet when you have a msg.sender check. Your script can handle wallets. You don’t need to input them into the CLI.
1 reply
0 recast
0 reaction

Samuel ツ pfp
Samuel ツ
@samuellhuber.eth
this was script related. I had msg.sender everywhere to account for what I do on the CLI but it still mixed that up somehow with 2 different ones in there. passing the flag explicitly got it to run consistenly
0 reply
0 recast
0 reaction