Add payable modifier for contracts and entrypoints
This commit is contained in:
@@ -123,7 +123,8 @@ compilable_contracts() ->
|
||||
{"bitcoin_auth", "authorize", ["1", "#0102030405060708090a0b0c0d0e0f101718192021222324252627282930313233343536373839401a1b1c1d1e1f202122232425262728293031323334353637"]},
|
||||
{"bitcoin_auth", "to_sign", ["#0102030405060708090a0b0c0d0e0f1017181920212223242526272829303132", "2"]},
|
||||
{"stub", "foo", ["42"]},
|
||||
{"stub", "foo", ["-42"]}
|
||||
{"stub", "foo", ["-42"]},
|
||||
{"payable", "foo", ["42"]}
|
||||
].
|
||||
|
||||
not_yet_compilable(fate) ->
|
||||
|
||||
@@ -125,7 +125,8 @@ compilable_contracts() ->
|
||||
"stdlib_include",
|
||||
"double_include",
|
||||
"manual_stdlib_include",
|
||||
"list_comp"
|
||||
"list_comp",
|
||||
"payable"
|
||||
].
|
||||
|
||||
not_yet_compilable(fate) -> [];
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
payable contract Test =
|
||||
payable entrypoint foo(x : int) = ()
|
||||
function bar() = 42
|
||||
Reference in New Issue
Block a user