You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 18, 2019. It is now read-only.
The issue here is that 100000000000000001 has too much precision. However, the Stellard error message should say something more descriptive than Can only send positive amounts..
The issue isn't precision as such. It's that it's largest than the (somewhat arbitrary) largest allowed value for the native currency. The error you are getting comes from code similar to this in the transactor:
if (!saTakerPays.isLegalNet () || !saTakerGets.isLegalNet ())
return temBAD_AMOUNT;
Tracing through STAmount::isLegalNet you'll find that it determines whether the given amount exceeds the largest allowed value on the network, which happens to be 100000000000000000. You're specifying 100000000000000001 - which is one larger than the maximum allowed value.
The code is correctly returning a "bad amount" because the amount you are trying to represent is one more than the largest allowed value on the network for the native currency.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This transaction works (some information hidden to make things shorter):
But this doesn't work:
The text was updated successfully, but these errors were encountered: