Skip to content

bug: misleading error message #1695

@carmen0208

Description

@carmen0208

Describe the bug
When I followed the LayerZero OFT quickstart guide using npx create-lz-oapp@latest --example oft and then ran the npx hardhat lz:oft:send ... command, I encountered an error.

The root cause was that I forgot to mint tokens, but the error message pointed me in the wrong direction

Image

To Reproduce
Steps to reproduce the behavior:

  1. following the instruction of https://docs.layerzero.network/v2/developers/evm/oft/quickstart
  2. finish all the preconfiguration. but do not mint any token
  3. run lz:oft:send will gets the error message

Expected behavior
Not show the misleading OFT: undefined message

Screenshots
Image

Environment (please complete the following information):

  • OS: macOS
  • OS Version Sequoia
  • VM: node
  • VM Version: v20.14.0

Additional context
I have a fix on the misleading error message: #1677

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions