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) {