Skip to content

Lesson 6: Why cannot I use .wait(1) on fund_me = FundMe.deploy(...) #1139

Answered by cromewar
n4n0b1t3 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @n4n0b1t3
Are you sure this works?

  tx = MockV3Aggregator.deploy(DECIMALS, INITIAL_VALUE, {"from": account})
    tx.wait(1)

I have the same error:

And this is because contract deployment are not transactions you would have to wait block confirmations for, at least not in brownie logic, as the transaction receipt is the actual contract address.

Replies: 2 comments 1 reply

Comment options

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

Answer selected by n4n0b1t3
Comment options

You must be logged in to vote
0 replies
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