This repository has been archived by the owner on Jan 24, 2022. It is now read-only.
Error contract code couldn't be stored
with PackagedApp on Infura mainnet
#91
Labels
When running
zos push
, it occassionally crashes when trying to deploy the PackagedApp contract. However, when inspecting the transactions sent in etherscan, thePackagedApp
is successfully deployed.Note that the PackagedApp requires that the version is registered in the package on the constructor: https://github.com/zeppelinos/zos/blob/936eec451c2919299171265c7ce48ab0077035b2/packages/lib/contracts/application/PackagedApp.sol#L26
This means that it requires that the previous transaction (the one that reports
Added version 0.1.0
) finishes successfully. It could be the case that the Infura nodes are out of sync, and thus the node that handles the PackagedApp tx has not yet seen the previous tx, and hence fails.We need to try to reproduce the issue first, which we could do by trying to send a tx that depends on a previous one being run, before the first is actually mined. Once we know how to reproduce it, let's discuss how to fix (maybe retries on
getTransactionReceipt
, since the tx is actually successful?).The text was updated successfully, but these errors were encountered: