mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
* zetachain start * zeta chain cctx table * pagination * cctx page init * meta for new route * remove backlink * schema * continue * fix * navigation * filters to test * some fixes * add chain filter * add error message and revert options * address chain logo fix * cctx search * socket * fix conflict * fixes1 * fixes2 * fixes3 * fixes4 * fixes5 * tests * fixes6 * test fixes * revert options fix * stats and revert semi-fix * fix readme * cleanup * check for cctx in lifecycle * update config * fixes 8 * fixes 9 * update config * fixes10
9 lines
238 B
TypeScript
9 lines
238 B
TypeScript
export default function bytesToBase64(bytes: Uint8Array, addPrefix = true) {
|
|
let result = '';
|
|
for (const byte of bytes) {
|
|
result += Number(byte).toString(16).padStart(2, '0');
|
|
}
|
|
|
|
return addPrefix ? `0x${ result }` : result;
|
|
}
|