Fix read_contract_getter/4
This was meant to be a placeholder that I would catch and fix, but my test case never hit it! Whoops.
This commit is contained in:
+1
-2
@@ -790,8 +790,7 @@ decode_bytearray2(FATE, {erlang, Type}) -> hz_aaci:fate_to_erlang(Type, FATE).
|
||||
|
||||
read_contract_getter(AACI, ConID, Fun, Args) ->
|
||||
case contract(ConID) of
|
||||
{ok, {}} ->
|
||||
CallerID = ConID,
|
||||
{ok, #{"owner_id" := CallerID}} ->
|
||||
read_contract_getter(CallerID, AACI, ConID, Fun, Args);
|
||||
{error, Reason} ->
|
||||
{error, Reason}
|
||||
|
||||
Reference in New Issue
Block a user