Skip to content

Commit

Permalink
fix(tags): use ans-116 format for all tags (#6)
Browse files Browse the repository at this point in the history
This requires an update to the ar.io/sdk.

Related PR: ar-io/ar-io-sdk#130
  • Loading branch information
dtfiedler authored Jun 24, 2024
2 parents 9c8c4af + 5b47777 commit fd72292
Show file tree
Hide file tree
Showing 3 changed files with 129 additions and 89 deletions.
6 changes: 3 additions & 3 deletions src/arns.lua
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ end

function arns.getTokenCost(intendedAction)
local tokenCost = 0
if intendedAction.intent == "BuyRecord" then
if intendedAction.intent == "Buy-Record" then
local purchaseType = intendedAction.purchaseType
local years = intendedAction.years
local name = intendedAction.name
Expand All @@ -316,7 +316,7 @@ function arns.getTokenCost(intendedAction)
assert(type(name) == "string", "Name is required and must be a string.")
local baseFee = demand.getFees()[#name]
tokenCost = arns.calculateRegistrationFee(purchaseType, baseFee, years, demand.getDemandFactor())
elseif intendedAction.intent == "ExtendLease" then
elseif intendedAction.intent == "Extend-Lease" then
local name = intendedAction.name
local years = intendedAction.years
assert(type(name) == "string", "Name is required and must be a string.")
Expand All @@ -331,7 +331,7 @@ function arns.getTokenCost(intendedAction)
local years = intendedAction.years
local baseFee = demand.getFees()[#intendedAction.name]
tokenCost = arns.calculateExtensionFee(baseFee, years, demand.getDemandFactor())
elseif intendedAction.intent == "IncreaseUndernameLimit" then
elseif intendedAction.intent == "Increase-Undername-Limit" then
local name = intendedAction.name
local qty = intendedAction.quantity
local currentTimestamp = intendedAction.currentTimestamp
Expand Down
Loading

0 comments on commit fd72292

Please sign in to comment.