Skip to content

Commit

Permalink
rename transfer_keep_alive to transferKeepAlive
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuripetusko committed Jan 29, 2024
1 parent 6be7526 commit 18a50b1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"clean": "rm -rf build",
"lint": "tsc --noEmit && eslint '*/**/*.{js,ts,tsx}' --quiet",
"lint:fix": "tsc --noEmit && eslint '*/**/*.{js,ts,tsx}' --quiet --fix",
"cli:fetch": "ts-node --project tsconfig.cli.json cli/fetch.ts",
"cli:fetch": "NODE_OPTIONS='--max-old-space-size=38000' ts-node --project tsconfig.cli.json cli/fetch.ts",
"cli:consolidate": "NODE_OPTIONS='--max-old-space-size=38000' ts-node --project tsconfig.cli.json cli/consolidate",
"cli:seed": "ts-node --project tsconfig.cli.json cli/seed",
"cli:getevents": "ts-node --project tsconfig.cli.json cli/getevents",
Expand Down
4 changes: 2 additions & 2 deletions src/rmrk2.0.0/tools/consolidator/interactions/buy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ const getExtraBalanceTransfers = (
const extraTransfers: ChangeExtraBalanceTransfer[] = [];

remark.extra_ex?.forEach((el: BlockCall) => {
if (el.call === "balances.transfer" || el.call === "balances.transfer_keep_alive") {
if (el.call === "balances.transfer" || el.call === "balances.transferKeepAlive") {
const [owner, forsale] = el.value.split(",");
const ownerEncoded = ss58Format
? encodeAddress(owner, ss58Format)
Expand All @@ -141,7 +141,7 @@ const isTransferValid = (remark: Remark, nft: NFT, ss58Format?: number) => {
let transferValid = false;
let transferValue = "";
remark.extra_ex?.forEach((el: BlockCall) => {
if (el.call === "balances.transfer" || el.call === "balances.transfer_keep_alive") {
if (el.call === "balances.transfer" || el.call === "balances.transferKeepAlive") {
const [owner, forsale] = el.value.split(",");
const ownerEncoded = ss58Format
? encodeAddress(owner, ss58Format)
Expand Down
2 changes: 1 addition & 1 deletion src/rmrk2.0.0/tools/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ export const getBlockCallsFromSignedBlock = async (
} as BlockCall);
} else {
const isBalanceTransfer = [
`balances.transfer_keep_alive`,
`balances.transferKeepAlive`,
`balances.transfer`,
].includes(`${el.section}.${el.method}`);

Expand Down

0 comments on commit 18a50b1

Please sign in to comment.