Questions tagged [origination]
The origination tag has no usage guidance.
14
questions
0
votes
1
answer
36
views
Got this error during ghostnet deployment, "No case matched: At /kind, unexpected string instead of endorsement"
I tried to originate a smart contract using smartpy ide and this is the error what I am getting.
An update on this
I tried commenting all the sp.emit() in the code and deployed. Then it was working ...
1
vote
2
answers
51
views
Can I create a smart contract from inside another smart contract in LIGO?
Through a parent contract, I want to be able to originate multiple child contracts. How can I do this in LIGO?
1
vote
1
answer
23
views
Is it possible to use an existing contracts storage as the seed data for a new contract that has the same storage schema?
Can you deploy a new copy of a contract with SmartPy and simultaneously copy the storage of an already existing contract that has an identical model into the freshly deployed contract?
1
vote
1
answer
55
views
How to initialize the storage while originating a contract with storage type (pair (address %administrator) (unit %dummy))?
The contract is meant to allow transfers only from the admin. I what to initialized the admin address at origination.
parameter (or (unit %default) (pair %admin_transfer (address %destination) (mutez %...
0
votes
1
answer
58
views
Originating a contract fails with 'unexpected_lazy_storage' ONLY when exception optimisation level is set to 'full-debug'
I have a contract that originates correctly when exception_optimization_level is set to debug-message and default-line. The contract tests, compiles, and works as expected except for a bug that is ...
0
votes
1
answer
55
views
Originate smart contract with empty arguments
I try to initialize a smart contract with five arguments being nat * timestamp * nat * timestamp * address. However, I only want to fill the last argument with some value but for the first four I try ...
2
votes
2
answers
183
views
Is it possible to originate a contract with an initial balance?
Instead of doing two operations:
1 - originate a contract
2 - transfer tez to the contract,
is it possible to do both in a single operation?
1
vote
1
answer
39
views
Trouble Initializing Contract with Lists
I am trying to learn smart contracts on Tezos and decided to originate my own. The contract is expecting the following storage:
pair (pair (address %owner)
(list %received
...
1
vote
2
answers
66
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
1
answer
76
views
Ill formed storage type in origination
Attempted to originate a contract but getting a storage type error when trying to originate it
Error: proto.005-PsBabyM1.michelson_v1.ill_formed_type
Error: proto.005-PsBabyM1.michelson_v1....
0
votes
1
answer
132
views
Initiate a field in the storage of a contract with the source address of origination
I have the following smart contract where I pass admin address in the init function of the smart contract: (you can run it on smartPy online editor)
class SC(sp.Contract):
def __init__(self, ...
4
votes
3
answers
332
views
How are the originated contract addreses (KT1) computed?
How are smart contract addresses (those that start with KT1) computed?
I would like to know whether CHAIN_ID is somehow used in its computation, or it is possible to have two KT1 contracts with ...
3
votes
1
answer
47
views
How to delegate programmatically?
I have successfully implemented an origination method and it is working. Nevertheless, when I try to set a delegate to the originated address, it does nothing. I receive no errors at all from the ...
1
vote
1
answer
99
views
Tezos Origination operation - How to do it correctly from programming?
I am implementing the "delegation" and "origination" methods in TezosJ_SDK_plainJava.
Occurs that, the origination method I wrote, although is creating an operation and writing it to the blockchain ...