From 9b19c7de05eb51a43c02a379e270b3f32a687c8a Mon Sep 17 00:00:00 2001 From: dtfiedler Date: Wed, 18 Dec 2024 12:36:37 -0600 Subject: [PATCH] fix(balance): fix tag check for balance --- src/main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.lua b/src/main.lua index f295fb08..b1d93f76 100644 --- a/src/main.lua +++ b/src/main.lua @@ -1840,17 +1840,17 @@ addEventingHandler(ActionMap.Balances, Handlers.utils.hasMatchingTag("Action", A end) addEventingHandler(ActionMap.Balance, Handlers.utils.hasMatchingTag("Action", ActionMap.Balance), function(msg) - local target = msg.Tags.Target or msg.Tags.Address or msg.From + local target = msg.Tags.Target or msg.Tags.Address or msg.Tags.Recipient or msg.From local balance = balances.getBalance(target) -- must adhere to token.lua spec for arconnect compatibility Send(msg, { Target = msg.From, Action = "Balance-Notice", + Account = msg.Tags.Address or msg.Tags.Recipient or msg.From, Data = balance, Balance = tostring(balance), Ticker = Ticker, - Address = target, }) end)