Skip to content

Commit

Permalink
Merge pull request #41 from ar-io/fix-remove-primary-names
Browse files Browse the repository at this point in the history
fix(primary names): update Remove-Primary-Names message to use comma delimited list
  • Loading branch information
atticusofsparta authored Nov 25, 2024
2 parents 138f712 + d6f8bad commit 28c6c26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/common/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/primary_names.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down

0 comments on commit 28c6c26

Please sign in to comment.