Questions tagged [types]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
2answers
37 views

What is a 'valid case' for bls12_381_fr?

I am trying to originate a contract using bls12_381_fr types and am running into an error. The same contract originated successfully on the edo branch of the Metastate repository. Now I am running the ...
1
vote
1answer
17 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
38 views

Is it possible to convert types in SmartPy?

For example, converting a TMutez into a TString?
1
vote
1answer
52 views

Convert address to string in LIGO

How do I convert an address type to a string type in LIGO?
1
vote
1answer
27 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
22 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 ...