Add integer enforcement when converting to XRP/MPTAmount to Number

This commit is contained in:
Ed Hennis
2025-11-04 21:07:01 -05:00
parent 93d99a671c
commit 16609ccaad
2 changed files with 2 additions and 2 deletions

View File

@@ -64,7 +64,7 @@ public:
operator Number() const noexcept
{
return value();
return {value(), Number::strong};
}
/** Return the sign of the amount */

View File

@@ -143,7 +143,7 @@ public:
operator Number() const noexcept
{
return drops();
return {drops(), Number::weak};
}
/** Return the sign of the amount */