• Mark Tyneway's avatar
    contracts-bedrock: fix deploy utils · 82b07d46
    Mark Tyneway authored
    It is possible for the backend to prune the chain db which
    will cause `waitForTransaction` to hang forever if the contract
    was not recently deployed. Only check for the transaction if
    it was recently deployed and instead add a safety check that
    looks at the on chain code. It is unlikely to deploy a contract that
    leaves no code in the state, so this is safe. The state cannot
    be pruned so this will be a more reliable check to ensure that
    the deployment is sane and exists. We do not use selfdestruct
    so this is safe.
    82b07d46
Name
Last commit
Last update
..
contracts Loading commit data...
deploy Loading commit data...
deploy-config Loading commit data...
deployments Loading commit data...
invariant-docs Loading commit data...
scripts Loading commit data...
src Loading commit data...
tasks Loading commit data...
test-case-generator Loading commit data...
.env.example Loading commit data...
.eslintignore Loading commit data...
.eslintrc.js Loading commit data...
.gas-snapshot Loading commit data...
.gitignore Loading commit data...
.npmignore Loading commit data...
.prettierignore Loading commit data...
.prettierrc.js Loading commit data...
.solhint.json Loading commit data...
.solhintignore Loading commit data...
.storage-layout Loading commit data...
CHANGELOG.md Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
echidna.yaml Loading commit data...
foundry.toml Loading commit data...
hardhat.config.ts Loading commit data...
layout-lock.json Loading commit data...
package.json Loading commit data...
slither.config.json Loading commit data...
slither.db.json Loading commit data...
tsconfig.build.json Loading commit data...
tsconfig.json Loading commit data...