Skip to main content
2 votes

Is there a formula to build parameter messages to be passed to smart contract entrypoints?

If we could do a logic schematics for this specific case, do you sirs think it could be described like this? : parameter (or (or (pair %addCustomer (pair (mutez %balance) (string %id)) (pair (string %...
Luiz Milfont's user avatar
2 votes
Accepted

how do you find the action of a big map diff from RPC JSON?

If RPC's bigmap diff doesn't contain value, like this: { "key_hash": "exprv5CuRy2eC8Z7n2KyRX4wyHDSFPosiRqL4cQTRqErC358jpYj7X", "key": { "bytes": "...
Groxan's user avatar
  • 2,766
2 votes
Accepted

How to add new record fields in data storage after contract deployment? Is storing JSON in a field viable?

Parsing and unparsing json seems totally impractical. You’re correct in your assumption. You cannot change the type of the storage. You could use a map so that fields are replaced by keys (supposing ...
FFF's user avatar
  • 3,260
2 votes
Accepted

Need help understanding smart contract method call of tzBTC

The concept of entrypoints is very lightweight in Michelson, and under the hood it's still a value of a single type that is actually passed to the script. Hence the various ways to do the same thing, ...
Michael Zaikin's user avatar
1 vote
Accepted

What does `consequence of bad union` mean when injecting a block?

It means 2 things: 1/ For some reason I cannot really guess like that, the economic protocol disagreed with your block and returned an error message. 2/ There were a bug in the JSON encoding of error ...
Pierre Boutillier's user avatar
1 vote
Accepted

Is there a formula to build parameter messages to be passed to smart contract entrypoints?

There are two ways to indicate which entrypoint you want to call: call it by its name using the --entrypoint command-line argument of tezos-client transfer or the entrypoint optional parameter of the ...
Raphaël Cauderlier's user avatar
1 vote

Is there a formula to build parameter messages to be passed to smart contract entrypoints?

You need to follow the path to the corresponding entry point in the Michelson parameter type. ‘Left’ when you go to the left branch of a ‘or’ and ‘Right’ for the right branch.
FFF's user avatar
  • 3,260
1 vote
Accepted

Pretty-printing Micheline JSON

With PyTezos it would be (don't mind the naming, it is wrong, will be fixed at some point): >>> from pytezos.michelson.converter import micheline_to_michelson >>> print(...
Michael Zaikin's user avatar
1 vote

Pretty-printing Micheline JSON

Edit: I realized that I misread the question and answered it for Michelson to Micheline when you wanted Micheline to Michelon. I do not know if there is a way to do that via the command line. ...
MCH's user avatar
  • 690

Only top scored, non community-wiki answers of a minimum length are eligible