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

Can't detect tcontract creation in mempool after upgrade #4788

Open
HugoMag opened this issue Jul 16, 2024 · 1 comment
Open

Can't detect tcontract creation in mempool after upgrade #4788

HugoMag opened this issue Jul 16, 2024 · 1 comment
Assignees
Labels
investigate Under investigation and may be a bug. v6 Issues regarding v6

Comments

@HugoMag
Copy link

HugoMag commented Jul 16, 2024

Ethers Version

6.13.1

Search Terms

contract creation

Describe the Problem

Hi,
I've upgraded from v5 to v6 and the code that was working and getting the "creates" or "contractAddress" are no longer present in transactions when I call provider.getTransaction(tx).
I'm calling this method for all transactions in the mempool.

This happens with several different providers (alchemy, chainnodes, noderpc, etc).

Code Snippet

let transaction = await provider.getTransaction(tx);
const {creates: createsTr, contractAddress } = transaction;
      const creates = createsTr || contractAddress;
      if (!creates) {
        console.log(
          `Something went wrong getting new contract info from mempool. Can't find creates parameter `
        );
        return false;
      }

Contract ABI

No response

Errors

No response

Environment

node.js (v12 or newer)

Environment (Other)

No response

@HugoMag HugoMag added investigate Under investigation and may be a bug. v6 Issues regarding v6 labels Jul 16, 2024
@HugoMag HugoMag changed the title Add Bug Title Here Can't detect tcontract creation in mempool Jul 16, 2024
@HugoMag HugoMag changed the title Can't detect tcontract creation in mempool Can't detect tcontract creation in mempool after upgrade Jul 16, 2024
@ricmoo
Copy link
Member

ricmoo commented Jul 25, 2024

Can you provide an example tx hash that doesn't work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigate Under investigation and may be a bug. v6 Issues regarding v6
Projects
None yet
Development

No branches or pull requests

2 participants