Questions tagged [contract]

The tag has no usage guidance.

3
votes
2answers
78 views

How to extract the storage of a smart contract?

How do I extract the storage data of a deployed smart contract? I am trying to read the storage data from the "free Ledger Nano S" contract KT1BRudFZEXLYANgmZTka1xCDN5nWTMWY7SZ from the Tezos ...
4
votes
0answers
24 views

Updating a existing contract with new code and storage

Is it possible to update a existing deployed contract with new code & storage on the same address? It would be like adding a new version or does the updated contract have to be deployed to a new ...
2
votes
1answer
40 views

How to initialise a contract with storage (contract unit)

How do I initialise a contract with the following storage - storage (contract unit); Used after the command line parameter --init for contract deployment. I have tried various formats but none of ...
2
votes
0answers
20 views

Contracts - is events / logging going to be added?

The Ethereum Solidity contract system has a feature for adding events (logging) which can be subscribed via the RPC and also searched for (as the events are stored on the blockchain). Is there going ...
2
votes
1answer
28 views

Contract - purpose of returned internal operations?

I keep seeing contract internal operations being returned empty (stack - 'NIL operation;') in the example Tezos Michelson contracts. What is the purpose of the internal operations? Also, are there ...
3
votes
0answers
18 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
23 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
32 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
60 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
76 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
44 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
44 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/...
-3
votes
1answer
38 views

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

but the doc have't example. really bad.
4
votes
1answer
56 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
71 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?