From 8dbd1a3e7252dc7b2bfa4c6e77b8e92bd09e84aa Mon Sep 17 00:00:00 2001 From: atticusofsparta Date: Mon, 25 Nov 2024 15:18:38 -0600 Subject: [PATCH 1/2] fix(primary names): fix remove primary names --- src/common/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/main.lua b/src/common/main.lua index 27f00f9..6893003 100644 --- a/src/common/main.lua +++ b/src/common/main.lua @@ -309,7 +309,7 @@ function ant.init() ao.send({ Target = ioProcess, Action = "Remove-Primary-Names", - Names = json.encode(names), + Names = names, }) end) end From d6f8bad1d5c64a8048fd5e3bf33a01655d64b367 Mon Sep 17 00:00:00 2001 From: atticusofsparta Date: Mon, 25 Nov 2024 15:35:21 -0600 Subject: [PATCH 2/2] fix(remove names): update primary names messages to send as comma delimited list --- src/common/main.lua | 2 +- test/primary_names.test.mjs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/main.lua b/src/common/main.lua index 6893003..2cfc4bd 100644 --- a/src/common/main.lua +++ b/src/common/main.lua @@ -309,7 +309,7 @@ function ant.init() ao.send({ Target = ioProcess, Action = "Remove-Primary-Names", - Names = names, + Names = msg.Tags.Names, }) end) end diff --git a/test/primary_names.test.mjs b/test/primary_names.test.mjs index 36d3d07..733000b 100644 --- a/test/primary_names.test.mjs +++ b/test/primary_names.test.mjs @@ -85,7 +85,7 @@ describe('Primary Names', async () => { assert.strictEqual(removePrimaryNamesMsg.Target, ''.padEnd(43, '2')); assert.strictEqual(actionTag.value, 'Remove-Primary-Names'); - assert.strictEqual(namesTag.value, JSON.stringify(names)); + assert.strictEqual(namesTag.value, names.join(',')); }); it('should not send remove names request if caller not owner', async () => { const names = ['foo', 'bar', 'baz'];