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
int type has a max size of 2^63 -1 which is 9.22 * 10^18
According to the documentation on bitgo websize, we are sending the base unit for "sendcoins" API, which is "wei" on Ethereum. It will be problematic if we are sending over 9.23 eth from this SDK, becasue 9.23 eth = 9.23 * 10^18 wei and this number breaks the max size of int type.
Could you change it to string so it will be safe to send coins on Ethreumn?
The text was updated successfully, but these errors were encountered:
Hi @eslavyansky
https://github.com/jazzserve/bitgo/blob/master/wallet-operations-basic.go#L177
int
type has a max size of 2^63 -1 which is 9.22 * 10^18According to the documentation on bitgo websize, we are sending the base unit for "sendcoins" API, which is "wei" on Ethereum. It will be problematic if we are sending over 9.23 eth from this SDK, becasue 9.23 eth = 9.23 * 10^18 wei and this number breaks the max size of
int
type.Could you change it to
string
so it will be safe to send coins on Ethreumn?The text was updated successfully, but these errors were encountered: