Browse Source

Update jetton-helpers.ts

master
AlexG 2 years ago
parent
commit
2481803bf0
  1. 2
      sources/utils/jetton-helpers.ts

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

Loading…
Cancel
Save