Contract factories and bytecode introspection #796
6
src/aeso_utils.hrl
Normal file
6
src/aeso_utils.hrl
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
-define(IS_CONTRACT_HEAD(X),
|
||||||
|
(X =:= contract_main orelse
|
||||||
|
X =:= contract_interface orelse
|
||||||
|
X =:= contract_child
|
||||||
|
)
|
||||||
|
).
|
5
test/contracts/interface_with_defs.aes
Normal file
5
test/contracts/interface_with_defs.aes
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
contract interface ContractOne =
|
||||||
|
entrypoint foo() = "foo"
|
||||||
|
|
||||||
|
contract ContractTwo =
|
||||||
|
entrypoint bar() = "bar"
|
Loading…
x
Reference in New Issue
Block a user