WIP: call args
This commit is contained in:
+7
-8
@@ -928,18 +928,17 @@ contract_create(CreatorID, Path, InitArgs) ->
|
|||||||
end.
|
end.
|
||||||
|
|
||||||
|
|
||||||
-spec contract_create(CreatorID, Nonce,
|
-spec contract_create(CreatorID, Nonce, Gas, GP, Amount, TTL, Contract, InitArgs) -> Result
|
||||||
Amount, TTL, Gas, GasPrice,
|
|
||||||
Path, InitArgs) -> Result
|
|
||||||
when CreatorID :: pubkey(),
|
when CreatorID :: pubkey(),
|
||||||
Nonce :: pos_integer(),
|
Nonce :: pos_integer(),
|
||||||
|
Gas :: pos_integer(),
|
||||||
|
GP :: pos_integer(), % Gas Price
|
||||||
Amount :: non_neg_integer(),
|
Amount :: non_neg_integer(),
|
||||||
TTL :: non_neg_integer(),
|
TTL :: non_neg_integer(),
|
||||||
Gas :: pos_integer(),
|
Contract :: {file, file:filename()}
|
||||||
GasPrice :: pos_integer(),
|
| {source, binary()}
|
||||||
Path :: file:filename(),
|
| {build, map()},
|
||||||
InitArgs :: [string()]
|
InitArgs :: {erlang, [term()]}
|
||||||
| {erlang, [term()]}
|
|
||||||
| {fate, [term()]}
|
| {fate, [term()]}
|
||||||
| {sophia, [string()]},
|
| {sophia, [string()]},
|
||||||
Result :: {ok, CreateTX} | {error, Reason},
|
Result :: {ok, CreateTX} | {error, Reason},
|
||||||
|
|||||||
Reference in New Issue
Block a user