Questions tagged [types]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
1 answer
63 views

How can I avoid sp.TOption type when using sp.unpack()?

Within my smartpy contract, I want to convert from one type into another using sp.pack() and sp.unpack. Below is an example of the method I am trying to use, converting a string to bytes. ...
user avatar
  • 639
3 votes
1 answer
142 views

Is it possible to convert types in SmartPy?

For example, converting a TMutez into a TString?
user avatar
  • 639
2 votes
1 answer
37 views

Which hash function is used when converting an address from raw bytes?

With the raw address 0x0000861299624c9a3b52be10762c64bac282b1c02316 the first 4 characters (0000 in this case) represent tz1 and the rest of the string is the raw Tezos address. From my research it ...
user avatar
  • 439