rlp header should be hex string

This commit is contained in:
2024-12-05 18:23:21 -06:00
parent 847e020e6e
commit dc2986f1eb
4 changed files with 12 additions and 3 deletions
+7
View File
@@ -0,0 +1,7 @@
export function toHex(bytes: Uint8Array): string{
let hex = '';
bytes.forEach((byte)=>{
hex += byte.toString(16).padStart(2,'0')
})
return hex;
}