diff --git a/src/common/main.lua b/src/common/main.lua index 27f00f9..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 = json.encode(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'];