Questions tagged [types]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
10 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. ...
1
vote
1answer
17 views

What's the best way to convert from TMutez to TBytes?

Previously when I asked about converting types, I got this useful suggestion: For mutez, you could start to convert to int (by dividing by 1 mutez) and then use the same techniques. I'm wondering if ...
1
vote
1answer
16 views

How to format storage for a contract call with parameters?

I am trying to construct the storage needed to do an on chain contract call but I'm having trouble passing in the parameters. What is making it tricky is that one of the parameters is of type ...
1
vote
1answer
25 views

Is it possible to convert types in SmartPy?

For example, converting a TMutez into a TString?
0
votes
1answer
35 views

Convert address to string in LIGO

How do I convert an address type to a string type in LIGO?