Skip to content

Normalize empty, not found, null outputs #574

@hugomrdias

Description

@hugomrdias

We need to normalize contract output for empty, not found states, behavior varies intra-contract and between contracts.

  • do it in sdk ? core ?
  • in sdk return
  • throw NotFoundError

ref:

Also, require(condition, "error message") should be translated to if (!condition) revert CustomError().

/cc @rvagg

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    🐱 Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions