Inspect bytecode of onchain contracts #295
Reference in New Issue
Block a user
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:
https://github.com/aeternity/aesophia/blob/e2ef95d6fda9a1f4e3a03f54c1e55a92903b1f21/src/aeso_ast_infer_types.erl#L436
I propose adding 2 new functions for the iris hardfork:
where
Chain.code_of(Contract.address) === Contract.codeUse-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?