handle hash literals when permissive_address_literals

This commit is contained in:
Ulf Norell
2019-03-01 11:36:28 +01:00
parent edc37bcf1b
commit 3efde2a2a1
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -97,6 +97,7 @@ calldata_test() ->
Map = #{ <<"a">> => 4 },
[{variant, 1, [Map]}, {{<<"b">>, 5}, {variant, 0, []}}] =
encode_decode_calldata("foo", ["variant", "r"], ["Blue({[\"a\"] = 4})", "{x = (\"b\", 5), y = Red}"]),
[16#123, 16#456] = encode_decode_calldata("foo", ["hash", "address"], ["#123", "#456"]),
ok.
calldata_init_test() ->