git.delta.rocks / unique-network / refs/commits / df9b2f8abb14

difftreelog

Fix error

Max Andreev2023-04-04parent: #67daa6f.patch.diff
in: master

6 files changed

modified.envdiffbeforeafterboth
before · .env
1RUST_TOOLCHAIN=nightly-2022-11-152POLKADOT_BUILD_BRANCH=release-v0.9.373POLKADOT_LAUNCH_BRANCH=unique-network4RELAY_CHAIN_TYPE=westend56POLKADOT_MAINNET_BRANCH=release-v0.9.377STATEMINT_BUILD_BRANCH=release-parachains-v93708ACALA_BUILD_BRANCH=2.12.09MOONBEAM_BUILD_BRANCH=runtime-220110ASTAR_BUILD_BRANCH=v5.3.011UNIQUE_MAINNET_BRANCH=release-v93705312UNIQUE_REPLICA_FROM=wss://ws.unique.network:4431314KUSAMA_MAINNET_BRANCH=release-v0.9.3815STATEMINE_BUILD_BRANCH=release-parachains-v938216KARURA_BUILD_BRANCH=release-karura-2.15.017MOONRIVER_BUILD_BRANCH=runtime-220118SHIDEN_BUILD_BRANCH=v4.49.019QUARTZ_MAINNET_BRANCH=release-v93705320QUARTZ_REPLICA_FROM=wss://ws-quartz.unique.network:4432122UNIQUEWEST_MAINNET_BRANCH=release-v0.9.4023WESTMINT_BUILD_BRANCH=parachains-v940024OPAL_MAINNET_BRANCH=release-v93705325OPAL_REPLICA_FROM=wss://ws-opal.unique.network:4432627UNIQUEEAST_MAINNET_BRANCH=release-v0.9.3228SAPPHIRE_MAINNET_BRANCH=release-v93705329SAPPHIRE_REPLICA_FROM=wss://ws-sapphire.unique.network:443
modifiedtests/src/benchmarks/mintFee/index.tsdiffbeforeafterboth
--- a/tests/src/benchmarks/mintFee/index.ts
+++ b/tests/src/benchmarks/mintFee/index.ts
@@ -8,7 +8,7 @@
 import {Contract} from 'web3-eth-contract';
 import {createObjectCsvWriter} from 'csv-writer';
 import {convertToTokens, createCollectionForBenchmarks, PERMISSIONS, PROPERTIES} from '../utils/common';
-import {makeNames} from '../utils';
+import {makeNames} from '../../util';
 import {ContractImports} from '../../eth/util/playgrounds/types';
 
 const {dirname} = makeNames(import.meta.url);
modifiedtests/src/benchmarks/opsFee/index.tsdiffbeforeafterboth
--- a/tests/src/benchmarks/opsFee/index.ts
+++ b/tests/src/benchmarks/opsFee/index.ts
@@ -7,8 +7,10 @@
 import {createObjectCsvWriter} from 'csv-writer';
 import {FunctionFeeVM, IFunctionFee} from '../utils/types';
 import {convertToTokens, createCollectionForBenchmarks, PERMISSIONS, PROPERTIES, SUBS_PROPERTIES} from '../utils/common';
+import {makeNames} from '../../util';
 
 
+const {dirname} = makeNames(import.meta.url);
 
 const main = async () => {
 
modifiedtests/src/eth/util/index.tsdiffbeforeafterboth
--- a/tests/src/eth/util/index.ts
+++ b/tests/src/eth/util/index.ts
@@ -59,7 +59,7 @@
       }
       return account;
     };
-    await code(helper, privateKey);
+    return;
   }
   finally {
     await helper.disconnect();
modifiedtests/src/nesting/collectionProperties.test.tsdiffbeforeafterboth
--- a/tests/src/nesting/collectionProperties.test.ts
+++ b/tests/src/nesting/collectionProperties.test.ts
@@ -235,7 +235,7 @@
     itSub('Fails to set properties that exceed the limits', async ({helper}) =>  {
       const collection = await helper[testSuite.mode].mintCollection(alice);
 
-      const spaceLimit = helper.getApi().consts.unique.maxCollectionPropertiesSize.toNumber();
+      const spaceLimit = Number(helper.getApi().consts.unique.maxCollectionPropertiesSize);
 
       // Mute the general tx parsing error, too many bytes to process
       {
modifiedtests/src/util/index.tsdiffbeforeafterboth
--- a/tests/src/util/index.ts
+++ b/tests/src/util/index.ts
@@ -57,7 +57,7 @@
       }
       return account;
     };
-    await code(helper, privateKey);
+    return;
   }
   finally {
     await helper.disconnect();