-
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 |
|---|---|---|
| .. | ||
| constants.ts | ||
| contract-defs.ts | ||
| deploy-config.ts | ||
| deploy-utils.ts | ||
| index.ts |