mirror of
https://github.com/pezkuwichain/pezkuwi-api.git
synced 2026-04-22 03:17:56 +00:00
31467f90d4
- @pezkuwi/papi-utils (rebrand of @polkadot-api/utils) - @pezkuwi/bizinikiwi-bindings (rebrand of @polkadot-api/substrate-bindings) - @pezkuwi/metadata-builders (rebrand of @polkadot-api/metadata-builders) - @pezkuwi/merkleize-metadata (rebrand of @polkadot-api/merkleize-metadata) All @polkadot-api references replaced with @pezkuwi equivalents.
13 lines
364 B
JavaScript
13 lines
364 B
JavaScript
import { enhanceCodec, Bytes } from 'scale-ts';
|
|
|
|
const textEncoder$2 = new TextEncoder();
|
|
const textDecoder$1 = new TextDecoder();
|
|
const fixedStr = (nBytes) => enhanceCodec(
|
|
Bytes(nBytes),
|
|
(str) => textEncoder$2.encode(str),
|
|
(bytes) => textDecoder$1.decode(bytes)
|
|
);
|
|
|
|
export { fixedStr, textEncoder$2 as textEncoder };
|
|
//# sourceMappingURL=fixed-str.mjs.map
|