Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: (ChainError) Failed to find a contract-creation receipt #2227

Closed
theref opened this issue Aug 21, 2024 · 5 comments
Closed

ERROR: (ChainError) Failed to find a contract-creation receipt #2227

theref opened this issue Aug 21, 2024 · 5 comments
Assignees
Labels
category: bug Something isn't working

Comments

@theref
Copy link

theref commented Aug 21, 2024

ERROR: (ChainError) Failed to find a contract-creation receipt for '0x8d10e1b110761DB713A809eF7B3b084E1eA3A607'. Note that it may be the case that the backend used cannot detect contracts deployed by other contracts, and you may receive better results by installing a plugin that supports it, like Etherscan.

Environment information

  • OS: macOS
  • Python Version: 3.9.5
  • ape and plugin versions:
$ ape --version
0.7.23

$ ape plugins list
Installed Plugins
  etherscan    0.6.4.dev39+gca9ae64.d20240821
  infura       0.7.3
  polygon      0.7.2
  solidity     0.7.3

etherscan is a local version because I'm using Polygon Amoy and needed this change ApeWorX/ape-etherscan#146

  • Contents of your ape-config.yaml (NOTE: do not post anything private like RPC urls or secrets!):
$ cat ape-config.yaml
name: nucypher-contracts
contracts_folder: contracts

plugins:
  - name: solidity
  - name: polygon
  - name: ape-etherscan

dependencies:
  - name: openzeppelin
    github: OpenZeppelin/openzeppelin-contracts
    version: 5.0.0
    config_override:
      solidity:
        version: 0.8.23
        evm_version: paris
  - name: openzeppelin-upgradeable
    github: OpenZeppelin/openzeppelin-contracts-upgradeable
    version: 5.0.0
  - name: fx-portal
    github: 0xPolygon/fx-portal
    version: 1.0.5
  - name: threshold
    github: threshold-network/solidity-contracts
    version: 1.2.1

solidity:
  version: 0.8.23
  evm_version: paris
  import_remapping:
    - "@openzeppelin/contracts=openzeppelin/v5.0.0"
    - "@openzeppelin-upgradeable/contracts=openzeppelin-upgradeable/v5.0.0"
    - "@fx-portal/contracts=fx-portal/v1.0.5"
    - "@threshold/contracts=threshold/v1.2.1"


ethereum:
  mainnet:
    transaction_acceptance_timeout: 600  # 10 minutes


test:
  mnemonic: test test test test test test test test test test test junk
  number_of_accounts: 40

What went wrong?

I'm a running a deployment script. The deployment works fine, but when I'm trying to create a custom local registry and need to read some info from the contract. The above error comes from this line in my script:

receipt = contract_instance.receipt

which comes from here https://docs.apeworx.io/ape/v0.7.23/methoddocs/contracts.html#ape.contracts.base.ContractInstance.receipt

I'm only seeing this when deploying a proxied contract, standard contracts work fine

@theref theref added the category: bug Something isn't working label Aug 21, 2024
Copy link

linear bot commented Aug 21, 2024

@antazoey
Copy link
Member

I think this may have been fixed by this: #2001

@bitwise-constructs bitwise-constructs self-assigned this Aug 21, 2024
@fubuloubu
Copy link
Member

@theref have you tried upgrading ape/plugins to >0.8?

@antazoey
Copy link
Member

@theref See Ape was upgraded to 0.8 in that closed PR. Was the issue resolved?

@theref
Copy link
Author

theref commented Aug 27, 2024

@antazoey Upgrading to 0.8 and upgrading all the plugins has resolved this. Thanks!

@theref theref closed this as completed Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants