Skip to content

Error: MPTAmount value field rejects valid float values (e.g., 10.01) #796

@ObiajuluM

Description

@ObiajuluM

When I attempt to send an MPT payment transaction with an MPTAmount value of 10.01 (a float), the SDK throws the following error:

xrpl.core.binarycodec.exceptions.XRPLBinaryCodecException: Error processing Amount: 10.01 is an invalid MPT amount.

This behavior is unexpected as the SDK type hints suggest that float values should be acceptable for the MPTAmount.value field.

Expected Behavior:

The SDK should successfully process float values for the MPTAmount value field in MPT payment transactions.

Steps to Reproduce:

  • Create an MPT payment transaction with an MPTAmount value of 10.01 (or any other float value with decimal places).
  • Attempt to send the transaction using the SDK.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions