Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
I am calling cell.oneFromBoc with TonWeb, what could be causing this error?

I am getting an error with TonWeb - "tonweb/src/boc/Cell.js:347 const prefix = serializedBoc.slice(0, 4); TypeError: serializedBoc.slice is not a function."

I am calling cell.oneFromBoc. What could be causing this error?


This question was import from Telegram Chat: https://t.me/tondev_eng/2609

Votes Newest

Answers


The error message you are receiving suggests that the serializedBoc variable you are passing to the oneFromBoc method is not a string. The slice method can only be called on a string, so if serializedBoc is not a string, the method will throw an error.

In particular, it's possible that the jettonWalletCodeHex variable you are passing to the new TonWeb.token.ft.JettonMinter() method is not a string, but instead a parsed boc. Make sure that jettonWalletCodeHex is a string before passing it to the method.

  
  
Posted one year ago
15K Views
1 Answer
one year ago
one year ago
Tags