WIP: call args

This commit is contained in:
2026-04-25 13:16:13 +09:00
parent 540b2c513b
commit 249ec65504
+7 -8
View File
@@ -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},