Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [contract]

The tag has no usage guidance.

3
votes
0answers
16 views

Contract : opcodes FAILWITH / FAIL - gas usage

If a contract gets to the point where it fails. What is the process in terms of gas usage? Storage gas (new storage until failure) : reverted Gas usage (used until failure) : reverted Gas fee : paid ...
3
votes
1answer
18 views

Michelson contract files - spaces, new lines and comments

I wanted to check that when a Michelson contract file is created. Do file spaces, new lines and comments increase the gas cost when deployed?
5
votes
1answer
27 views

method for calling to entry point of contract instance (?) created by contract.create

Contract A is not able to find the address of the contract created by contract.create. Tried adding the signature of B as well as it's complete definition in contract A but still, it doesn't solve the ...
8
votes
2answers
36 views

What are the new rules for when a KT1 gets destroyed? Or when “--burn-cap” must be used to send funds to a tz1/tz2/tz3 account?

What are the new rules for when a KT1 gets destroyed? Is there a certain balance that it goes below? What about tz1/tz2/tz3? I noticed that sometimes --burn-cap must be used to send funds. Why is ...
6
votes
1answer
41 views

Deploying a simple contract using liquidity

Contract (simple.liq): [%%version 1.0] type storage = int let%init storage = 0 let%entry main (parameter : int) storage = ( [], storage + parameter ) Deployment command: liquidity --tezos-node ...
3
votes
1answer
38 views

Why use transactions to call contracts?

The transaction operation can be used to transfer tez, but also to call a smart contract. This leads to security issues since a user may be tricked into calling a contract when she simply wanted to ...
8
votes
1answer
36 views

how to estimate paid_storage_size_diff?

Example: I deploy a contract(gen a multi sign address,3owners) or tranfer 0 amount to a KT1 address (for multisign address send money to a tz1 address) I can estimate fee by: https://github.com/...
-2
votes
1answer
32 views

is this RPC methods related about : deploy or call contract? [duplicate]

but the doc have't example. really bad.
4
votes
1answer
32 views

how to deploy a contract with RPC method?

at first is there any way to deploy a contract with RPC methods? if had, could give me a step by step example? why I have so much problems confusing me because the official RPC doc have't detail ...
7
votes
2answers
53 views

Get a returned value when calling a Michelson contract

A call to a Michelson contract results in a storage update and the emission of operations. Is there a simple/standard way for the called contract to return a value to the caller?