Click in order · Blockchain and Web3 course · Module 7: Contract Interaction

Sorting: Decoding an error

Click the elements in the order needed to decode a custom error:

Items to click

  • = contract.interface.parseError
  • (error.data)
  • const decodedError
  • catch (error)

You can check the correct answer by solving this task in the CodeWorlds game.