Skip to content

Lesson 7: testWithdrawWithSingleFunder #1451

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

You must be logged in to vote

Hey @codeplay22 , so i asked that you show me your DeployFundMe.s.sol so i can figure out who is the owner of the contract, what i have observed is whenever you put a transaction call between a vm.startBroadcast() and vm.stopBroadcast() foundry has a default address which it always use to send those transactions and that default address always have a default balance of 79228162514264337593543950335

So in your DeployFundMe.s.sol you placed the transaction that deploy your FundMe contract between vm.startBroadcast() and vm.stopBroadcast() so foundry would use the default address it uses to send transaction 0x1804c8AB1F12E6bbf3894d4083f33e07309d1f38 which then make it so the address is the …

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@codeplay22
Comment options

Comment options

You must be logged in to vote
4 replies
@codeplay22
Comment options

@EngrPips
Comment options

@lomrormaheshIITB
Comment options

@EngrPips
Comment options

Answer selected by codeplay22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants