diff --git a/package-lock.json b/package-lock.json index 6d6b3f54..0e4e7f71 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29910,7 +29910,7 @@ }, "packages/message": { "name": "@aleph-sdk/message", - "version": "1.0.8", + "version": "1.0.9", "license": "MIT", "dependencies": { "axios": "^1.5.1", diff --git a/packages/message/package.json b/packages/message/package.json index 7814310f..d05df01a 100644 --- a/packages/message/package.json +++ b/packages/message/package.json @@ -1,6 +1,6 @@ { "name": "@aleph-sdk/message", - "version": "1.0.8", + "version": "1.0.9", "description": "Aleph.im message CRUD API", "main": "dist/index.cjs", "module": "dist/index.mjs", diff --git a/packages/message/src/instance/impl.ts b/packages/message/src/instance/impl.ts index f03d01d9..0b78624d 100644 --- a/packages/message/src/instance/impl.ts +++ b/packages/message/src/instance/impl.ts @@ -48,6 +48,8 @@ export class InstanceMessageClient { ...environment, } + if (mergedEnvironment.trusted_execution === null) delete mergedEnvironment.trusted_execution + const size_mib = mergedResources.memory * 10 > MAXIMUM_DISK_SIZE ? MAXIMUM_DISK_SIZE : mergedResources.memory * 10 const rootfs = { @@ -74,6 +76,8 @@ export class InstanceMessageClient { payment, } + if (instanceContent.requirements === null) delete instanceContent.requirements + const builtMessage = buildInstanceMessage({ account, channel,