git.delta.rocks / unique-network / refs/commits / 8b0ce93028c8

difftreelog

fix yarn fix

Trubnikov Sergey2022-12-13parent: #f0bc4b6.patch.diff
in: master

3 files changed

modifiedtests/src/apiConsts.test.tsdiffbeforeafterboth
--- a/tests/src/apiConsts.test.ts
+++ b/tests/src/apiConsts.test.ts
@@ -15,7 +15,6 @@
 // along with Unique Network. If not, see <http://www.gnu.org/licenses/>.
 
 import {ApiPromise} from '@polkadot/api';
-import {ApiBase} from '@polkadot/api/base';
 import {usingPlaygrounds, itSub, expect} from './util';
 
 
modifiedtests/src/eth/collectionProperties.test.tsdiffbeforeafterboth
--- a/tests/src/eth/collectionProperties.test.ts
+++ b/tests/src/eth/collectionProperties.test.ts
@@ -14,7 +14,7 @@
 // You should have received a copy of the GNU General Public License
 // along with Unique Network. If not, see <http://www.gnu.org/licenses/>.
 
-import {itEth, usingEthPlaygrounds, expect, EthUniqueHelper} from './util';
+import {itEth, usingEthPlaygrounds, expect} from './util';
 import {Pallets} from '../util';
 import {IProperty, ITokenPropertyPermission} from '../util/playgrounds/types';
 import {IKeyringPair} from '@polkadot/types/types';
modifiedtests/src/eth/events.test.tsdiffbeforeafterboth
245245
246async function testCollectionOwnedChanged(helper: EthUniqueHelper, mode: TCollectionMode) {246async function testCollectionOwnedChanged(helper: EthUniqueHelper, mode: TCollectionMode) {
247 const owner = await helper.eth.createAccountWithBalance(donor);247 const owner = await helper.eth.createAccountWithBalance(donor);
248 const new_owner = helper.ethCrossAccount.createAccount();248 const newOwner = helper.ethCrossAccount.createAccount();
249 const {collectionAddress} = await helper.eth.createCollection(mode, owner, 'A', 'B', 'C');249 const {collectionAddress} = await helper.eth.createCollection(mode, owner, 'A', 'B', 'C');
250 const collection = await helper.ethNativeContract.collection(collectionAddress, mode, owner);250 const collection = await helper.ethNativeContract.collection(collectionAddress, mode, owner);
251 const collectionHelper = helper.ethNativeContract.collectionHelpers(owner);251 const collectionHelper = helper.ethNativeContract.collectionHelpers(owner);
255 });255 });
256 const {unsubscribe, collectedEvents: subEvents} = await helper.subscribeEvents([{section: 'common', names: ['CollectionOwnerChanged']}]);256 const {unsubscribe, collectedEvents: subEvents} = await helper.subscribeEvents([{section: 'common', names: ['CollectionOwnerChanged']}]);
257 {257 {
258 await collection.methods.changeCollectionOwnerCross(new_owner).send({from: owner});258 await collection.methods.changeCollectionOwnerCross(newOwner).send({from: owner});
259 await helper.wait.newBlocks(1);259 await helper.wait.newBlocks(1);
260 expect(ethEvents).to.be.like([260 expect(ethEvents).to.be.like([
261 {261 {