Questions tagged [types]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
1 answer
70 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. ...
Darius's user avatar
  • 649
3 votes
1 answer
184 views

Is it possible to convert types in SmartPy?

For example, converting a TMutez into a TString?
Darius's user avatar
  • 649
1 vote
1 answer
92 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 ...
0x10's user avatar
  • 359