mirror of
https://github.com/pezkuwichain/pezkuwi-api.git
synced 2026-07-24 04:15:41 +00:00
feat: add PAPI rebrand packages
- @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.
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
const mergeUint8 = (...i) => {
|
||||
const inputs = Array.isArray(i[0]) ? i[0] : i;
|
||||
const totalLen = inputs.reduce((acc, a) => acc + a.byteLength, 0);
|
||||
const result = new Uint8Array(totalLen);
|
||||
for (let idx = 0, at = 0; idx < inputs.length; idx++) {
|
||||
const current = inputs[idx];
|
||||
result.set(current, at);
|
||||
at += current.byteLength;
|
||||
}
|
||||
return result;
|
||||
};
|
||||
|
||||
export { mergeUint8 };
|
||||
//# sourceMappingURL=mergeUint8.mjs.map
|
||||
Reference in New Issue
Block a user