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
#2018 and #2784 add support for Uint8Array to be passed where Vec<u8> is expected. We can extend that to support Uint16Array and Uint32Array as well.
Vec<u64> doesn't have a JavaScript equivalent so it'd still remain Vec<BigNumberish>. BigNumberish is defined as string | number | BN, but number only supports up to We might want to constrain Vec<u64> to string | BN because the maximum safe integer is less than u64. I'm not sure about this one, though, because people should know this info when dealing with large javascript numbers and it would be a breaking change. Still, I'm mentioning it for completeness.
The text was updated successfully, but these errors were encountered:
#2018 and #2784 add support for
Uint8Array
to be passed whereVec<u8>
is expected. We can extend that to supportUint16Array
andUint32Array
as well.Vec<u64>
doesn't have a JavaScript equivalent so it'd still remainVec<BigNumberish>
.BigNumberish
is defined asstring | number | BN
, butnumber
only supports up to We might want to constrainVec<u64>
tostring | BN
because the maximum safe integer is less thanu64
. I'm not sure about this one, though, because people should know this info when dealing with large javascript numbers and it would be a breaking change. Still, I'm mentioning it for completeness.The text was updated successfully, but these errors were encountered: