Skip to content

UUPS proxy smart contract #3225

Answered by EngrPips
18121A05L2 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @18121A05L2, any transaction in your script which is not wrapped inside vm.startBroadcast() and vm.stopBroadcast() will be sent by the Foundry default sender address which is 0x1804c8AB1F12E6bbf3894d4083f33e07309d1f38 so to prevent the Foundry default sender from being the msg.sender wrap the line that deploys the contract inside vm.startBroadcast() and vm.stopBroadcast() and pass the private key of the address you want to use as the sender inside vm.startBroadcast() like this vm.startBroadcast(privateKey)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by 18121A05L2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants