Skip to content

Commit

Permalink
chore: add back tag forwarding
Browse files Browse the repository at this point in the history
  • Loading branch information
dtfiedler committed Jun 24, 2024
1 parent ec4491c commit 766451f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -891,12 +891,12 @@ Handlers.add(ActionMap.Record, utils.hasMatchingTag("Action", ActionMap.Record),
}

-- Add forwarded tags to the credit and debit notice messages
-- for tagName, tagValue in pairs(msg) do
-- -- Tags beginning with "X-" are forwarded
-- if string.sub(tagName, 1, 2) == "X-" then
-- recordNotice[tagName] = tagValue
-- end
-- end
for tagName, tagValue in pairs(msg) do
-- Tags beginning with "X-" are forwarded
if string.sub(tagName, 1, 2) == "X-" then
recordNotice[tagName] = tagValue
end
end

-- Send Record-Notice
ao.send(recordNotice)
Expand Down

0 comments on commit 766451f

Please sign in to comment.