Questions tagged [ligo]
The ligo tag has no usage guidance.
8
questions with no upvoted or accepted answers
2
votes
0answers
37 views
How to set `contract` as input argument
I have a method Token_metadata_registry which takes contract(address) as input parameter and I would like to call that method from ligo dry-run. How do I do that?
ligo dry-run contracts/main/fa2.ligo ...
1
vote
1answer
32 views
proto.007-PsDELPH1.storage_exhausted.operation when originating contract (storage_limit is set)
I am trying to deploy a contract to delphinet with truffle.
On a local sandbox the contract deploys just fine, but for the deployment on Delphi I am getting:
proto.007-PsDELPH1.storage_exhausted....
1
vote
0answers
28 views
Initialize a record storage with command line
I'm trying to initialize the storage of the record through the command line. I'm trying different variations of: "ligo compile-storage college.religo main 4 Adam 1600"
For a record called ...
1
vote
0answers
20 views
Not able to get error msg generated by failWith using ConseilJS
I am trying to invoke my contract with conseiljs.TezosNodeWriter.sendContractInvocationOperation().
Everything works fine with a positive scenario but when I purposely fail the script with some error ...
1
vote
1answer
24 views
Pascaligo map iteration issue
I try to fetch a list of addresses with expired date by appending the address to list(address).
However when doing map iteration, it encounters a persistent error says 'not True'.
Hope someone can ...
1
vote
1answer
15 views
Pascaligo Compiling Error on Big_map.add
I encounter the below error message when compiling the code on LIGO Playground.
Error: ligo: in file "tmp-1CAIKM1VUeRgb.ligo",
line 29, characters 98-112. different kinds: {"a":"unit","b":"(...
1
vote
0answers
15 views
Split function contract template
Is there a code template for a simple contract which splits the incoming funds and sends them proportionally to a list of pre-registered addresses?
Example:
Contract has the following functions:
...
0
votes
1answer
39 views
Handling floating point numbers in decentralized exchanges
I am writing a contract in Ligo that manages FA2 fungible tokens with an interface that lets users easily create new tokens. I am building a very simple exchange where the users can create orders to ...