Skip to content

Commit

Permalink
fix(increase undernames): fix naming on increase undernames
Browse files Browse the repository at this point in the history
  • Loading branch information
Atticus committed Jun 21, 2024
1 parent c41c5f3 commit 95b819e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ local ActionMap = {
IncreaseVault = "IncreaseVault",
BuyRecord = "BuyRecord",
ExtendLease = "ExtendLease",
IncreaseundernameLimit = "IncreaseundernameLimit",
IncreaseUndernameLimit = "IncreaseUndernameLimit",
JoinNetwork = "JoinNetwork",
LeaveNetwork = "LeaveNetwork",
IncreaseOperatorStake = "IncreaseOperatorStake",
Expand Down Expand Up @@ -360,8 +360,8 @@ Handlers.add(ActionMap.ExtendLease, utils.hasMatchingTag("Action", ActionMap.Ext
end)

Handlers.add(
ActionMap.IncreaseundernameLimit,
utils.hasMatchingTag("Action", ActionMap.IncreaseundernameLimit),
ActionMap.IncreaseUndernameLimit,
utils.hasMatchingTag("Action", ActionMap.IncreaseUndernameLimit),
function(msg)
local checkAssertions = function()
assert(type(msg.Tags.Name) == "string", "Invalid name")
Expand Down Expand Up @@ -404,7 +404,7 @@ Handlers.add(ActionMap.TokenCost, utils.hasMatchingTag("Action", ActionMap.Token
-- assert is one of those three interactions
msg.Tags.Intent == ActionMap.BuyRecord
or msg.Tags.Intent == ActionMap.ExtendLease
or msg.Tags.Intent == ActionMap.IncreaseundernameLimit,
or msg.Tags.Intent == ActionMap.IncreaseUndernameLimit,
"Intent must be valid registry interaction (e.g. BuyRecord, ExtendLease, IncreaseUndernameLimit). Provided intent: "
.. msg.Tags.Intent
or "nil"
Expand Down

0 comments on commit 95b819e

Please sign in to comment.