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

Explorer fails to decode call to system contract #600

Closed
ericleponner opened this issue May 16, 2023 · 3 comments · Fixed by #643
Closed

Explorer fails to decode call to system contract #600

ericleponner opened this issue May 16, 2023 · 3 comments · Fixed by #643
Assignees
Labels
bug Something isn't working smart contracts Features that involve smart contracts

Comments

@ericleponner
Copy link
Collaborator

Description

Explorer fails to decode the following call to system contract:

https://hashscan.io/mainnet/transaction/1684236107.179110285

image

In navigator console, the following error is reported by parseTransaction() function (ethers library):

Uncaught (in promise) Error: no matching function (argument="sighash", value="0x618dc65e", code=INVALID_ARGUMENT, version=abi/5.7.0)
    at Logger.makeError (index.js?ffb2:224:1)
    at Logger.throwError (index.js?ffb2:233:1)
    at Logger.throwArgumentError (index.js?ffb2:236:1)
    at Interface.getFunction (interface.js?a807:143:1)
    at Interface.parseTransaction (interface.js?a807:548:1)
    at _callee$ (FunctionCallAnalyzer.ts?d126:119:1)
    at tryCatch (runtime.js?96cf:63:1)
    at Generator.invoke [as _invoke] (runtime.js?96cf:294:1)
    at Generator.eval [as next] (runtime.js?96cf:119:1)
    at asyncGeneratorStep (asyncToGenerator.js?1da1:3:1)

Steps to reproduce

Go to https://hashscan.io/mainnet/transaction/1684236107.179110285

Additional context

No response

Hedera network

mainnet

Version

Built Mon, 15 May 2023 14:06:52 GMT

Operating system

macOS

@ericleponner ericleponner added the bug Something isn't working label May 16, 2023
@ericleponner ericleponner self-assigned this May 16, 2023
@SimiHunjan SimiHunjan added the smart contracts Features that involve smart contracts label May 23, 2023
@ericleponner
Copy link
Collaborator Author

Root cause of decoding error is that HTS ABI embedded in Explorer (IHederaTokenService.json) is obsolete.

However using the latest ABI, etherjs still throws a data out-of-bounds error.
So it looks like input value from 1684236107.179110285 cannot be decoded anymore.

Anyway Explorer should be enhanced and inform user that it is facing an invaliding encoding.

@mshakeg
Copy link

mshakeg commented Jun 27, 2023

Hi @ericleponner can you elaborate why the call cannot be decoded even using the latest HTS abi?

I've experienced this issue very recently: https://hashscan.io/testnet/transaction/1687896276.413382005

@ericleponner
Copy link
Collaborator Author

Hi @mshakeg
You can find more information in the bug I filed in smart-contract.
However my conclusions might be wrong according latest bug update. I need to dig into it a bit more i guess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working smart contracts Features that involve smart contracts
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants