UNPKG
@bitgo-forks/avalanchejs
Version:
latest (4.1.0-alpha.1)
master (4.1.0-alpha.3)
4.1.0-alpha.3
4.1.0-alpha.2
4.1.0-alpha.1
Avalanche Platform JS Library
github.com/BitGo/avalanchejs
BitGo/avalanchejs
@bitgo-forks/avalanchejs
/
src
/
fixtures
/
utils
/
bytesFor.ts
4 lines
(2 loc)
•
138 B
text/typescript
View Raw
1
2
3
4
import
{
Int
}
from
'../../serializable/primitives/int'
;
export
const
bytesForInt = (
num
:
number
):
Uint8Array
=>
new
Int
(num).
toBytes
();