How can I convert string type value to Slice type?
from Wooogy
I'm trying to save the string data in the contract on the client side (typescript) by using ton-core SDK.
beginCell().storeSlice("my string data")
Is there any solution or sample code related to this??
https://github.com/getgems-io/nft-contracts/blob/main/packages/nft-content/nftContent.ts
I tried to use the example code, but there is an error in it itself.
cs.readRemainingBytes(); -> class Slice https://ton-community.github.io/ton-core/classes/Slice.html doesn't have readRemainingBytes function.
curCell.bits.writeBuffer(chunk); -> class BitString https://ton-community.github.io/ton-core/classes/BitString.html doesn't have writeBuffer function
🔗 Answer on TON Overflow
Mar 9, 2023, 8:38 AM
It’s actually my colleague😄
Mar 9, 2023, 8:41 AM