diff --git a/src/main.lua b/src/main.lua index 30d065db..f7c1f3ac 100644 --- a/src/main.lua +++ b/src/main.lua @@ -952,6 +952,7 @@ Handlers.add(ActionMap.Info, Handlers.utils.hasMatchingTag("Action", ActionMap.I Target = msg.From, Action = "Info-Notice", Tags = { Name = Name, Ticker = Ticker, Logo = Logo, Denomination = tostring(Denomination) }, + Data = json.encode({ Name = Name, Ticker = Ticker, Logo = Logo, Denomination = Denomination }), }) end) diff --git a/test/arns.test.js b/test/arns.test.js index e6b37d62..a077a629 100644 --- a/test/arns.test.js +++ b/test/arns.test.js @@ -21,6 +21,14 @@ describe('ArNS', async () => { ); } + it('should get token info', async () => { + const result = await handle({ + Tags: [{ name: 'Action', value: 'Info' }], + }); + const tokenInfo = JSON.parse(result.Messages[0].Data); + assert(tokenInfo); + }); + it('should buy a record', async () => { const buyRecordResult = await handle({ Tags: [