hedera-json-rpc-relay icon indicating copy to clipboard operation
hedera-json-rpc-relay copied to clipboard

Transaction reverted with encoded error but string was expected

Open mgarbs opened this issue 6 months ago • 9 comments

Description

The Axelar team is encountering an issue where they are expecting a revert message to be a string but it is coming back encoded. Below are the details of the scenario:

Steps to Reproduce

  1. Execute the transaction linked above on the Hedera testnet.
  2. Observe that the transaction reverts with the encoded version of the expected error string.
  3. Check the assertion in the AxelarGateway.js test file.

Expected Behavior The transaction should revert with NativeCurrencyNotAccepted in the string.

Actual Behavior The transaction reverts with the right error but it is encoded and Axelar is expecting it to be a string in parity with many other evms they've integrated

Environment

mgarbs avatar Aug 05 '24 13:08 mgarbs