Skip to content

Commit

Permalink
Merge pull request #351 from permaweb/twilson63/fix-token-reply-check
Browse files Browse the repository at this point in the history
chore: add reply check to info reply
  • Loading branch information
twilson63 authored Sep 20, 2024
2 parents 16783ad + a211f00 commit 5cfdd22
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions blueprints/token.lua
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,21 @@ Logo = Logo or 'SBCCXwwecBlDqRLUjb8dYABExTJXLieawf7m2aBJ-KY'
]]
--
Handlers.add('info', Handlers.utils.hasMatchingTag("Action", "Info"), function(msg)
msg.reply({
if msg.reply then
msg.reply({
Name = Name,
Ticker = Ticker,
Logo = Logo,
Denomination = tostring(Denomination)
})
else
Send({Target = msg.From,
Name = Name,
Ticker = Ticker,
Logo = Logo,
Denomination = tostring(Denomination)
})
})
end
end)

--[[
Expand Down

0 comments on commit 5cfdd22

Please sign in to comment.