Skip to content

Better error message for "Attempt to transfer an object that's not a coin" #1747

Closed
@huitseeker

Description

@huitseeker

Passing an NFT object ID through the wallet's transfer function results in the message:

RPC call failed: ErrorObject { code: ServerError(-32000), message: "Attempt to transfer an object that's not a coin.", data: None }

See

#[error("Attempt to transfer an object that's not a coin.")]
TransferNonCoinError,

While the behavior is expected, this message could be more helpful, in pointing out that non-coin object transfers must go through a distinct Move call (and possibly helping me, the user, figure out how to craft that transaction).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions