Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOU Amount Precision checks missing #2899

Open
zgrguric opened this issue Feb 20, 2025 · 0 comments
Open

IOU Amount Precision checks missing #2899

zgrguric opened this issue Feb 20, 2025 · 0 comments
Labels

Comments

@zgrguric
Copy link
Contributor

This will pass with xrpl.js client

{
    "TransactionType": "Payment",
    "Account": "r4ejfGBMqN9chqA9Xfka9kg5AKkPGvajuz",
    "Destination": "raHYzhu84pZxKK2NjKigLmT85D3WamiorR",
    "Amount": {
        "currency": "BAR",
        "value": "0.0000000000000000001",
        "issuer": "raHYzhu84pZxKK2NjKigLmT85D3WamiorR"
    },
    "NetworkID": 1
}

This will be correctly blocked

{
    "TransactionType": "Payment",
    "Account": "r4ejfGBMqN9chqA9Xfka9kg5AKkPGvajuz",
    "Destination": "raHYzhu84pZxKK2NjKigLmT85D3WamiorR",
    "Amount": "0.0000000000000000001",
    "NetworkID": 1
}

Also keep in mind there are DeliveredMax, and other fields to check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants