Questions tagged [origination]
The origination tag has no usage guidance.
12
questions
4
votes
3
answers
232
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
46
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 ...
2
votes
2
answers
174
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
2
answers
59
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
70
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....
1
vote
1
answer
92
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 ...
1
vote
1
answer
32
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
1
answer
19
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
37
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 ...
0
votes
1
answer
39
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
0
answers
32
views
Custom FA1.2 Token - High Level Question about Custom Token/Symbols
I am hoping this is a very easy answer as I am most likely thinking about the fundamentals of this incorrectly. I am trying to build out a quick POC for the company I work for but am struggling with ...
0
votes
1
answer
91
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, ...