Skip to content

Commit

Permalink
fix: sell price
Browse files Browse the repository at this point in the history
  • Loading branch information
noyyyy committed Oct 16, 2024
1 parent 75bbadd commit 9a2458b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/contracts/scripts/applyValue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const args = process.argv.slice(2);
const profile = args[0];

const homeJson = fs.readFileSync(
`./manifests/${profile}/manifest.json`
`./manifests/${profile}/manifest.json`,
) as unknown as string;

const homeJsonData = JSON.parse(homeJson);
Expand Down Expand Up @@ -74,7 +74,7 @@ function initializeSynergyProfile() {
const name = utf8StringToHexString(row["Name"]);
const requiredPieces = numberToHexString(
Number(row["RequiredPieces"]),
2
2,
);
const metadata = numberToHexString(Number(row["Metadata"]), 2);

Expand Down Expand Up @@ -211,7 +211,7 @@ function initializeSellPriceConfig() {
const level = numberToHexString(Number(row["level"]), 2);
const price = numberToHexString(Number(row["price"]), 2);

const callDataStr = [rarity, level, price].join(",");
const callDataStr = [level, rarity, price].join(",");

callData.push(callDataStr);
})
Expand Down

0 comments on commit 9a2458b

Please sign in to comment.