Fix default argument for clone

This commit is contained in:
radrow
2021-05-11 14:03:20 +02:00
parent b1b2dc849a
commit 9b1b36f4c1
3 changed files with 21 additions and 6 deletions
+2 -2
View File
@@ -26,14 +26,14 @@ run_test(Test) ->
simple_compile_test_() ->
[ {"Testing the " ++ ContractName ++ " contract with the " ++ atom_to_list(Backend) ++ " backend",
fun() ->
case compile(Backend, ContractName) of
case compile(Backend, ContractName, [pp_assembler]) of
#{byte_code := ByteCode,
contract_source := _,
type_info := _} when Backend == aevm ->
?assertMatch(Code when is_binary(Code), ByteCode);
#{fate_code := Code} when Backend == fate ->
Code1 = aeb_fate_code:deserialize(aeb_fate_code:serialize(Code)),
?assertMatch({X, X}, {Code1, Code});
?assertMatch({X, X}, {Code1, Code}), error(xd);
ErrBin ->
io:format("\n~s", [ErrBin]),
error(ErrBin)