Compare commits
No commits in common. "bda4e89e58789cf3bdc555fdfdcf588616be3b3b" and "ddec3bfa7477a84ea8844a8996a026444c32858a" have entirely different histories.
bda4e89e58
...
ddec3bfa74
16
src/hz.erl
16
src/hz.erl
@ -691,10 +691,8 @@ 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
|
||||
@ -1046,9 +1044,8 @@ contract_create(CreatorID, Path, InitArgs) ->
|
||||
%% <li>
|
||||
%% <b>Args:</b>
|
||||
%% This is a list of the arguments to provide to the function, listed in order
|
||||
%% 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.
|
||||
%% 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"').
|
||||
%% </li>
|
||||
%% </ul>
|
||||
%% As should be obvious from the above description, it is pretty helpful to have a
|
||||
@ -1408,9 +1405,8 @@ contract_call(CallerID, Gas, AACI, ConID, Fun, Args) ->
|
||||
%% <li>
|
||||
%% <b>Args:</b>
|
||||
%% This is a list of the arguments to provide to the function, listed in order
|
||||
%% 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.
|
||||
%% 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"').
|
||||
%% </li>
|
||||
%% </ul>
|
||||
%% As should be obvious from the above description, it is pretty helpful to have a
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user