From 2481803bf0912306602c82faa87f6072a5149923 Mon Sep 17 00:00:00 2001 From: AlexG <39581753+Reveloper@users.noreply.github.com> Date: Sun, 22 Jan 2023 12:52:32 +0400 Subject: [PATCH] Update jetton-helpers.ts --- sources/utils/jetton-helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/utils/jetton-helpers.ts b/sources/utils/jetton-helpers.ts index 4e4d429..1f880cd 100644 --- a/sources/utils/jetton-helpers.ts +++ b/sources/utils/jetton-helpers.ts @@ -39,7 +39,7 @@ export function buildTokenMetadataCell(data: { [s: string]: string | undefined } //TODO need fix dictionary writing while (bufferToStore.length > 0) { - currentCell.storeBits(bufferToStore.read(CELL_MAX_SIZE_BYTES)) // how to read from Buffer??? + currentCell.storeBuffer(bufferToStore.subarray(0, CELL_MAX_SIZE_BYTES)) // how to read from Buffer??? //currentCell.bits.writeBuffer(bufferToStore.slice(0, CELL_MAX_SIZE_BYTES)); //bufferToStore = bufferToStore.slice(CELL_MAX_SIZE_BYTES); if (bufferToStore.length > 0) {