I'm new to programming and currently following a brownie tutorial. While interacting with smart contracts, my tutor puts a tx.wait(1) after every transaction that requires a state change of the contract. I'm guessing tx.wait(1) means that we tell brownie to wait for at least one confirmation of the transaction before proceeding further. But
- tx.wait(1) is not required after deploying a contract. Why don't we wait for a confirmation after deployment?
- my tutor skips tx.wait(1) during testing. why does it still work?
It is clear that I don't fully understand what tx.wait(1) actually does. Can someone please explain it to me? Or atleast point me towards some documentation about it? I'd really appreciate the help. TIA.