UNPKG
@yubing744/rooch-sdk
Version:
latest (0.1.0)
0.1.0
Rooch SDK
github.com/rooch-network/rooch
rooch-network/rooch
@yubing744/rooch-sdk
/
src
/
utils
/
bytes.ts
8 lines
(6 loc)
•
239 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
// Copyright (c) RoochNetwork
// SPDX-License-Identifier: Apache-2.0
import
{
Seq
}
from
'../generated/runtime/serde/mod'
export
function
uint8Array2SeqNumber
(
bytes:
Uint8Array
):
Seq
<number> {
return
Array
.
from
(bytes,
(
byte
) =>
byte) }