-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
msg.sender
during deploy scripts is not EOA wallet addr
#7255
Comments
msg.sender
being passed into function params is not EOA wallet addrmsg.sender
during deploy scripts is not EOA wallet addr
To pinpoint exactly what issue you are encountering, you'll need to be more specific about how you've configured your wallet at I don't exactly have your issue but I've been researching today on how In that PR, they've updated the docs to be more clear on how a signer is chosen (you'll also probably want to update foundry since this seems to be a recent addition)
As a sidenote, does anyone know how the docs at https://book.getfoundry.sh get updated? #7454 looks like it was merged, yet I see the same outdated explanation for the I would also like clarification on how someone can retrieve the broadcasting address? #7454 claimed to have solved the issue where |
Tentatively marking as @ramenforbreakfast thanks for your comment, indeed the rules for determining the sender are as follows:
When deploying without a
Without more details on the specific deployment flow it is difficult to narrow this down. Feel free to re-open with a minimal reproduction example. |
I encountered the same issue with the latest version. I didn’t use the
|
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0
What command(s) is the bug in?
forge script script/Deploy.s.sol:DeployHome --rpc-url sepolia --broadcast --verify -vvvv --etherscan-api-key sepolia
Operating System
Windows
Describe the bug
Ref repo: https://github.com/calnix/X-ChainToken/blob/main/script/Deploy.s.sol
I was initially running the deploy script above, using
msg.sender
as a param for variables such asdelegate
andowner
, which are then passed into respective contracts, constructors.msg.sender
to be my wallet address which is0xdE05a1Abb121113a33eeD248BD91ddC254d5E9Db
0x1804c8AB1F12E6bbf3894d4083f33e07309d1f38
. I have no idea where this address comes from.At first, this effect was sporadic - first two contracts on sepolia were fine, but the remote contract on Polygon had a wonky
msg.sender
.Subsequently, it became more pronounced, and I hardcoded my address instead of using msg.sender.
(Using windows 10, natively; without WSL)
The text was updated successfully, but these errors were encountered: