From b752965443cdede34a9b534f0b4086b993bbc881 Mon Sep 17 00:00:00 2001 From: Ulf Norell Date: Tue, 24 Sep 2019 10:47:26 +0200 Subject: [PATCH] don't call aeb_fate_ops with {store, _} arg (to not upset dialyzer) --- src/aeso_fcode_to_fate.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aeso_fcode_to_fate.erl b/src/aeso_fcode_to_fate.erl index e489bad..ca0f95b 100644 --- a/src/aeso_fcode_to_fate.erl +++ b/src/aeso_fcode_to_fate.erl @@ -477,7 +477,7 @@ call_to_scode(Env, CallCode, Args) -> builtin_to_scode(_Env, get_state, []) -> [push(?s)]; builtin_to_scode(Env, set_state, [_] = Args) -> - call_to_scode(Env, [aeb_fate_ops:store(?s, ?a), + call_to_scode(Env, [{'STORE', ?s, ?a}, tuple(0)], Args); builtin_to_scode(Env, chain_event, Args) -> call_to_scode(Env, [erlang:apply(aeb_fate_ops, log, lists:duplicate(length(Args), ?a)), @@ -624,7 +624,7 @@ op_to_scode(string_blake2b) -> aeb_fate_ops:blake2b(?a, ?a). %% PUSH and STORE ?a are the same, so we use STORE to make optimizations %% easier, and specialize to PUSH (which is cheaper) at the end. -push(A) -> aeb_fate_ops:store(?a, A). +push(A) -> {'STORE', ?a, A}. tuple(0) -> push(?i({tuple, {}})); tuple(N) -> aeb_fate_ops:tuple(?a, N).