print(rpc.time()) rpc.sleep(100000) print(rpc.time()) print(dutch_auction.returnNow())
1590430653 1590530653 1590430651
Ok problem averted, rpc.sleep(10000) moves the clock forward, rpc.mine() mines a block so "now" see it
That makes sense.
Error: Returned values aren't valid, did it run Out of Gas? You might also see this error if you are not using the correct ABI for the contract you are retrieving data from, requesting data from a block number that does not exist, or querying a node which is not fully synced.
upon closer inspection i see this in the ganache output, which is where the tx ids and other info related to the deployment are -
evm_snapshot Saved snapshot #11 evm_revert Reverting to snapshot #1 eth_blockNumber
which probably explains why the dapp cant talk to the contracts - the EVM reverted back to initial state after deployment
ContractNotFound: No contract deployed at 0x7c2C195CD6D34B8F845992d380aADB2730bB9C6Fwhich is strange since i'm using the same deploy script that worked successfully earlier (albeit with the snapshot/reverting)
ContractNotFoundis because while using a live environment, deployment info persists between sessions... @matnad is working on a brownie-react setup and i think has already encountered and solved this problem, so it should also be dealt with in the next release :)
v1.9.0is out! and this is a huuuge one https://github.com/eth-brownie/brownie/releases/tag/v1.9.0