File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,9 @@ def verify_mpt_value(mpt_value: str) -> None:
125
125
"""
126
126
# Contains no decimal point
127
127
if not _contains_decimal (mpt_value ):
128
- raise XRPLBinaryCodecException (f"{ mpt_value } is an invalid MPT amount." )
128
+ raise XRPLBinaryCodecException (
129
+ f"{ mpt_value } is a decimal value. Please use string type to represent it."
130
+ )
129
131
130
132
decimal = None
131
133
try :
Original file line number Diff line number Diff line change 3
3
from __future__ import annotations
4
4
5
5
from dataclasses import dataclass
6
- from typing import Dict , Union
6
+ from typing import Dict
7
7
8
8
from typing_extensions import Self
9
9
@@ -24,7 +24,7 @@ class MPTAmount(BaseModel):
24
24
:meta hide-value:
25
25
"""
26
26
27
- value : Union [ str , int , float ] = REQUIRED # type: ignore
27
+ value : str = REQUIRED # type: ignore
28
28
"""
29
29
This field is required.
30
30
You can’t perform that action at this time.
0 commit comments