Proto: add Sc_rollup destination
Context
Adds Sc_rollup to the destinations, which is used for Michelson addresses.
Done:
-
VIEWreturnsNone, like onTx_rollup - parsing sc_rollup addresses depends on the
sc_rollup_enableflag
To be changed in later MRs:
-
TRANSFER_TOKENSis not implemented yet (will be #2801 (closed)) and fails -
CONTRACTalways fails withNo_such_entrypoint(will be #2800 (closed), and depends on !5342 (merged))
Based on !5326 (merged), !5310 (merged), !5317 (merged).
Closes #2798 (closed)
Manually testing the MR
./tezos-client -M mockup typecheck data '"scr1HLXM32GacPNDrhHDLAssZG88eWqCUbyLF"' against type address
Ill typed data: 1: "scr1HLXM32GacPNDrhHDLAssZG88eWqCUbyLF"
is not an expression of type address
At line 1 characters 0 to 39, value "scr1HLXM32GacPNDrhHDLAssZG88eWqCUbyLF"
is invalid for type address.
{ "id": "proto.alpha.michelson_v1.sc_rollup_disabled",
"description":
"Cannot use smart-contract rollup features as they are disabled.",
"data": { "location": 0 } }
Fatal error:
ill-typed data
- turn
sc_rollup_enabletotrueintest-parameters.json./tezos-client -M mockup create mockup --protocol-constants test-parameters.json./tezos-client -M mockup typecheck data '"scr1HLXM32GacPNDrhHDLAssZG88eWqCUbyLF"' against type address
Well typed
Gas remaining: 1039996.540 units remaining
Checklist
-
Document the interface of any function added or modified (see the coding guidelines) -
Document any change to the user interface, including configuration parameters (see node configuration) -
Provide automatic testing (see the testing guide). -
For new features and bug fixes, add an item in the appropriate changelog ( docs/protocols/alpha.rstfor the protocol and the environment,CHANGES.rstat the root of the repository for everything else). -
Select suitable reviewers using the Reviewersfield below. -
Select as Assigneethe next person who should take action on that MR
Edited by Mehdi Bouaziz