From f277e79096e49e7ed37e01dea290ce69c7805802 Mon Sep 17 00:00:00 2001 From: Craig Everett Date: Wed, 25 Feb 2026 16:20:52 +0900 Subject: [PATCH] Minor doc and style edits --- src/hz.erl | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/hz.erl b/src/hz.erl index 84d1535..97d8d66 100644 --- a/src/hz.erl +++ b/src/hz.erl @@ -691,8 +691,10 @@ decode_bytearray_fate(EncodedStr) -> Encoded = unicode:characters_to_binary(EncodedStr), {contract_bytearray, Binary} = gmser_api_encoder:decode(Encoded), case Binary of - <<>> -> {ok, none}; - <<"Out of gas">> -> {error, out_of_gas}; + <<>> -> + {ok, none}; + <<"Out of gas">> -> + {error, out_of_gas}; _ -> % FIXME there may be other errors that are encoded directly into % the byte array. We could try and catch to at least return @@ -1038,8 +1040,9 @@ contract_create(CreatorID, Path, InitArgs) -> %%
  • %% Args: %% This is a list of the arguments to provide to the function, listed in order -%% according to the function's spec, and represented as strings (that is, an integer -%% argument of `10' must be cast to the textual representation `"10"'). +%% according to the function's spec. Arguments can be represented as a list of +%% Sophia literals (a simple list of strings), or alternately as a list of compatible +%% Erlang, FATE or Sophia terms wrapped in a tuple which specifies the representation. %%
  • %% %% As should be obvious from the above description, it is pretty helpful to have a @@ -1399,8 +1402,9 @@ contract_call(CallerID, Gas, AACI, ConID, Fun, Args) -> %%
  • %% Args: %% This is a list of the arguments to provide to the function, listed in order -%% according to the function's spec, and represented as strings (that is, an integer -%% argument of `10' must be cast to the textual representation `"10"'). +%% according to the function's spec. Arguments can be represented as a list of +%% Sophia literals (a simple list of strings), or alternately as a list of compatible +%% Erlang, FATE or Sophia terms wrapped in a tuple which specifies the representation. %%
  • %% %% As should be obvious from the above description, it is pretty helpful to have a