Inspect bytecode of onchain contracts #295
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In order for #197 to be fully useful and enable the creation of an easy and good DEFI ecosystem we need the ability to:
In order for this to become possible we need a "GetBytecode" opcode/helpers. Right now this functionality isn't present at all in Sophia:
e2ef95d6fd/src/aeso_ast_infer_types.erl (L436)
I propose adding 2 new functions for the iris hardfork:
where
Chain.code_of(Contract.address) === Contract.code
Use-cases which will become possible by introducing this:
Chain.create_contract(Chain.code_of(address_to_be_cloned), init_args)
Chain.create_contract(Contract.code, init_args)
etc...
Created by: nikita-fuchs
Fully agree. Do we have the staff to exactly specify the right gas costs for these operations?
@UlfNorell Could you give us a time estimate for this task?