Skip to content

Commit

Permalink
feat: update to pass credits/time nft contract address as parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
eruizgar91 committed Aug 28, 2024
1 parent 40bd377 commit 2049b7b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/commands/app/registerAgent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,16 @@ export const registerAgent = async (
costInCredits, // default cost in credits for every succesful query to the agent
costInCredits, // min amount of credits to be consumed
maxCostInCredits, // max amount of credits to be consumed
argv.nftAddress || nvmApp.sdk.keeper.nftUpgradeable.address
)
} else {
ddo = await nvmApp.registerServiceAsset(
agentMetadata,
argv.subscriptionDid,
costInCredits
costInCredits,
undefined,
undefined,
argv.nftAddress || nvmApp.sdk.keeper.nftUpgradeable.address
)
}

Expand Down
3 changes: 2 additions & 1 deletion src/commands/app/registerFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ export const registerFiles = async (
const ddo = await nvmApp.registerFileAsset(
filesMetadata,
argv.subscriptionDid,
costInCredits
costInCredits,
argv.nftAddress || nvmApp.sdk.keeper.nftUpgradeable.address
)

const assetUrl = `${config.nvm.appUrl}/en/file/${ddo.shortId()}`
Expand Down

0 comments on commit 2049b7b

Please sign in to comment.