Fix test, changelog
This commit is contained in:
parent
39326158cb
commit
ac01255d3a
@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
### Changed
|
### Changed
|
||||||
- Error messages have been restructured (less newlines) to provide more unified errors. Also `pp_oneline/1` has been added.
|
- Error messages have been restructured (less newlines) to provide more unified errors. Also `pp_oneline/1` has been added.
|
||||||
### Removed
|
### Removed
|
||||||
|
- Support for AEVM has been entirely wiped
|
||||||
|
|
||||||
## [6.1.0] - 2021-10-20
|
## [6.1.0] - 2021-10-20
|
||||||
### Added
|
### Added
|
||||||
|
@ -41,7 +41,6 @@ format({invalid_entrypoint, Why, Ann, {id, _, Name}, Thing}) ->
|
|||||||
Msg = io_lib:format("The ~sof entrypoint '~s' ~s.",
|
Msg = io_lib:format("The ~sof entrypoint '~s' ~s.",
|
||||||
[ThingS, Name, Bad]),
|
[ThingS, Name, Bad]),
|
||||||
case Why of
|
case Why of
|
||||||
polymorphic -> mk_err(pos(Ann), Msg, "Use the FATE backend if you want polymorphic entrypoints.\n");
|
|
||||||
higher_order -> mk_err(pos(Ann), Msg)
|
higher_order -> mk_err(pos(Ann), Msg)
|
||||||
end;
|
end;
|
||||||
format({invalid_aens_resolve_type, Ann, T}) ->
|
format({invalid_aens_resolve_type, Ann, T}) ->
|
||||||
|
@ -252,8 +252,9 @@ to_sophia_value(ContractString, Fun, ResType, Data) ->
|
|||||||
to_sophia_value(_, _, error, Err, _Options) ->
|
to_sophia_value(_, _, error, Err, _Options) ->
|
||||||
{ok, {app, [], {id, [], "error"}, [{string, [], Err}]}};
|
{ok, {app, [], {id, [], "error"}, [{string, [], Err}]}};
|
||||||
to_sophia_value(_, _, revert, Data, _Options) ->
|
to_sophia_value(_, _, revert, Data, _Options) ->
|
||||||
try aeb_fate_encoding:deserialize(Data) of
|
try aeso_vm_decode:from_fate({id, [], "string"}, aeb_fate_encoding:deserialize(Data)) of
|
||||||
Err -> {ok, {app, [], {id, [], "abort"}, [{string, [], Err}]}}
|
Err ->
|
||||||
|
{ok, {app, [], {id, [], "abort"}, [Err]}}
|
||||||
catch _:_ ->
|
catch _:_ ->
|
||||||
Msg = "Could not deserialize the revert message",
|
Msg = "Could not deserialize the revert message",
|
||||||
{error, [aeso_errors:new(data_error, Msg)]}
|
{error, [aeso_errors:new(data_error, Msg)]}
|
||||||
|
@ -108,7 +108,7 @@ aci_test_contract(Name) ->
|
|||||||
{error, ErrorStringJ} when is_binary(ErrorStringJ) -> error(ErrorStringJ);
|
{error, ErrorStringJ} when is_binary(ErrorStringJ) -> error(ErrorStringJ);
|
||||||
{error, ErrorJ} -> aeso_compiler_tests:print_and_throw(ErrorJ)
|
{error, ErrorJ} -> aeso_compiler_tests:print_and_throw(ErrorJ)
|
||||||
end,
|
end,
|
||||||
case aeso_compiler:from_string(String, [{aci, json}, {backend, fate} | Opts]) of
|
case aeso_compiler:from_string(String, [{aci, json} | Opts]) of
|
||||||
{ok, #{aci := JSON1}} ->
|
{ok, #{aci := JSON1}} ->
|
||||||
?assertEqual(JSON, JSON1),
|
?assertEqual(JSON, JSON1),
|
||||||
io:format("JSON:\n~p\n", [JSON]),
|
io:format("JSON:\n~p\n", [JSON]),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user