From 999598b595b8c0e3c8fd194bbbcfb1fe2229b606 Mon Sep 17 00:00:00 2001 From: Aitor <1726644+aaitor@users.noreply.github.com> Date: Tue, 5 Mar 2024 17:28:47 +0100 Subject: [PATCH] chore: adding v2.1.0 Changelog updates --- CHANGELOG.md | 8 ++++++++ src/commands/assets/getAsset.ts | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b87fea..4574d4b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file. Dates are d Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). +#### [v2.1.0](https://github.com/nevermined-io/cli/compare/v2.0.4...v2.1.0) + +> 5 March 2024 + +- feat: using the new NvmApp API [`37fb61c`](https://github.com/nevermined-io/cli/commit/37fb61ceee95939660fb3c3da8ca7c6c06789120) +- feat: app commands (in progress) [`7433883`](https://github.com/nevermined-io/cli/commit/74338838ec94caa3f5b302147f6ce2be90baac71) +- feat: app flow [`e729568`](https://github.com/nevermined-io/cli/commit/e729568342fa2b0ca1f0c4b3f761727a484e55b8) + #### [v2.0.4](https://github.com/nevermined-io/cli/compare/v2.0.3...v2.0.4) > 23 February 2024 diff --git a/src/commands/assets/getAsset.ts b/src/commands/assets/getAsset.ts index ee83984..078269b 100644 --- a/src/commands/assets/getAsset.ts +++ b/src/commands/assets/getAsset.ts @@ -51,8 +51,12 @@ export const getAsset = async ( account.babySecret = babyAccount.babySecret account.babyX = babyAccount.babyX account.babyY = babyAccount.babyY + } + const service = ddo.findServiceByReference(serviceReference) + console.log(`Service: ${service.attributes.serviceAgreementTemplate.contractName}`) + if (!argv.agreementId) { logger.info(chalk.dim(`No agreementId. Ordering asset using reference ${serviceReference}: ${did}`)) agreementId = await nvmApp.sdk.assets.order(did, serviceReference, account)