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: no matching event (argument="topichash", value="0xddf25...", code=INVALID_ARGUMENT, version=abi/5.4.0) #298

Open
mirkopezo opened this issue Aug 10, 2021 · 3 comments

Comments

@mirkopezo
Copy link

error 2

This error is thrown out after successfully mined transaction, in my case it is minting new tokens. Minting works fine, but this error is thrown out after every successful mint or any other transactions like transfer etc.

This is my code but simplified:

import { utils } from 'ethers';
import { Contract } from '@ethersproject/contracts'
import { useContractFunction } from '@usedapp/core';

function Mint() {
  const citInterface = new utils.Interface(['function mint(uint amount) external']);
  const citContractAddress = '0xd2539E040A79D9597310D96aD17C96518168A63F';
  const contract = new Contract(citContractAddress, citInterface);
  const { send } = useContractFunction(contract, 'mint');

  const callMint = (mintAmount) => {
    send(mintAmount*10**8);
  }
 // method callMint is called when I input some number and click on button
}

I have googled this error and stumbled across this ethers-io/ethers.js#733 . I am not quite experienced so I don't know how to fix this.

@lcamargof
Copy link
Contributor

Please check this PR it should fix your problem, the issue is that one of the logs returned by the transaction comes from another contract.

@brunitob
Copy link

brunitob commented Aug 30, 2021

Still happening to me: code=INVALID_ARGUMENT, version=abi/5.2.0

@mirkopezo mirkopezo changed the title Error: no matching event (argument="topichash", value="0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef", code=INVALID_ARGUMENT, version=abi/5.4.0) Error: no matching event (argument="topichash", value="...", code=INVALID_ARGUMENT, version=abi/5.4.0) Aug 30, 2021
@mirkopezo mirkopezo changed the title Error: no matching event (argument="topichash", value="...", code=INVALID_ARGUMENT, version=abi/5.4.0) Error: no matching event (argument="topichash", value="0xddf25...", code=INVALID_ARGUMENT, version=abi/5.4.0) Aug 30, 2021
@rzadp
Copy link
Contributor

rzadp commented Aug 10, 2022

Does anyone has this issue with useDApp 1.0?
Did anyone tried to upgrade ethers to version 5.6?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants