-
| new problem description problem description     tx = MockV3Aggregator.deploy(DECIMALS, INITIAL_VALUE, {"from": account})
    tx.wait(1)Why, when doing the same with my contract deployment, this gives me the following error?     fund_me = FundMe.deploy(
        price_feed_address,
        {"from": account},
        publish_source=config["networks"][network.show_active()].get("verify"),
    )
    fund_me.wait(1)disclaimer: the code runs fine otherwise, it's just the line fund_me.wait(1) which throws an error. environment overview 
 shortened terminal output with errors (py39brownie) fund_me>brownie run .\scripts\deploy.py --network mainnet-fork-infura
[...]
Launching 'ganache-cli.cmd --chain.vmErrorsOnRPCResponse true --wallet.totalAccounts 10 --fork.url https://mainnet.infura.io/v3/my_id --miner.blockGasLimit 12000000 --wallet.mnemonic brownie --server.port 8545 --hardfork istanbul'...
Running 'scripts\deploy.py::main'...
Transaction sent: 0xsometxnumber
  FundMe.constructor confirmed   Block: 14262161   Gas used: 515622 (4.30%)
  File "C:\Users\n4n0b1t3\.virtualEnvironments\py39brownie\lib\site-packages\brownie\_cli\run.py", line 51, in main
    return_value, frame = run(
  File "C:\Users\n4n0b1t3\.virtualEnvironments\py39brownie\lib\site-packages\brownie\project\scripts.py", line 103, in run
    return_value = f_locals[method_name](*args, **kwargs)
  File ".\scripts\deploy.py", line 30, in main
    deploy_fund_me()
  File ".\scripts\deploy.py", line 24, in deploy_fund_me
    fund_me.wait(1)
  File "C:\Users\n4n0b1t3\.virtualEnvironments\py39brownie\lib\site-packages\brownie\network\contract.py", line 765, in __getattribute__
    raise AttributeError(f"Contract '{self._name}' object has no attribute '{name}'")
AttributeError: Contract 'FundMe' object has no attribute 'wait'
Terminating local RPC client...
(py39brownie) fund_me> | 
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
| Hello @n4n0b1t3   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. | 
Beta Was this translation helpful? Give feedback.
-
| Hey friends. I'm writting from Spain .. I have a similar problem .. i would like ask you if you could give me and idea what happen .. my error in lesson 6 is: _raise AttributeError(f"Contract '{self.name}' object has no attribute '{name}'") Script: def fund(): def main(): FundMe.sol: I compiled FundMe.sol and i see in .json getEntranceFee() .. On ganache instance i see: web3_clientVersion An Idea what could happen?? Tnx very much and have a nice day. | 
Beta Was this translation helpful? Give feedback.

Hello @n4n0b1t3
Are you sure this works?
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.