From e6f7d0a336753955d55e42a5a4d731d2094236ce Mon Sep 17 00:00:00 2001 From: Piotr Roslaniec Date: Wed, 6 Sep 2023 15:57:45 +0200 Subject: [PATCH] update to nucypher-core@0.13.0 --- package.json | 2 +- src/conditions/context/context.ts | 4 +--- yarn.lock | 8 ++++---- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 76fade158..d9d8ceb6b 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "prebuild": "yarn typechain" }, "dependencies": { - "@nucypher/nucypher-core": "^0.12.0", + "@nucypher/nucypher-core": "^0.13.0", "axios": "^1.5.0", "deep-equal": "^2.2.1", "ethers": "^5.7.2", diff --git a/src/conditions/context/context.ts b/src/conditions/context/context.ts index a71e90d91..7a961792e 100644 --- a/src/conditions/context/context.ts +++ b/src/conditions/context/context.ts @@ -151,9 +151,7 @@ export class ConditionContext { acp: AccessControlPolicy, signer?: ethers.Signer ): ConditionContext { - const conditions = acp.conditions - ? [ConditionExpression.fromWASMConditions(acp.conditions).condition] - : []; + const conditions = [ConditionExpression.fromWASMConditions(acp.conditions).condition]; return new ConditionContext(provider, conditions, {}, signer); } } diff --git a/yarn.lock b/yarn.lock index 7a7ef1720..c495cb6b3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1818,10 +1818,10 @@ "@nodelib/fs.scandir" "2.1.5" fastq "^1.6.0" -"@nucypher/nucypher-core@^0.12.0": - version "0.12.0" - resolved "https://registry.yarnpkg.com/@nucypher/nucypher-core/-/nucypher-core-0.12.0.tgz#0274026f3996601994e9639c06ab79c62c8f5d7c" - integrity sha512-hEjjnTSLNqHUiIF6U02j+M8jUOBCOt5mGG78lMHoathbak15AmYX4gkdkHTg2Ssvt5o77Cwzsn5YgGM4Haf7AQ== +"@nucypher/nucypher-core@^0.13.0": + version "0.13.0" + resolved "https://registry.yarnpkg.com/@nucypher/nucypher-core/-/nucypher-core-0.13.0.tgz#071263931d4e9604b428ea738ebe8ee5e1f302f3" + integrity sha512-HfEbrQvngOHIn0bMAdqPIF7WzkLdb5+sMhmX7bQl2SINABQ6FGGN8G+Arb+pbkYgru5qeQ+RTTbCBwBNaxFKEg== "@sinclair/typebox@^0.27.8": version "0.27.8"