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
15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.
1616
17import {ApiPromise} from '@polkadot/api';17import {ApiPromise} from '@polkadot/api';
18import {ApiBase} from '@polkadot/api/base';
19import {usingPlaygrounds, itSub, expect} from './util';18import {usingPlaygrounds, itSub, expect} from './util';
2019
2120
modifiedtests/src/eth/collectionProperties.test.tsdiffbeforeafterboth
14// You should have received a copy of the GNU General Public License14// You should have received a copy of the GNU General Public License
15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.
1616
17import {itEth, usingEthPlaygrounds, expect, EthUniqueHelper} from './util';17import {itEth, usingEthPlaygrounds, expect} from './util';
18import {Pallets} from '../util';18import {Pallets} from '../util';
19import {IProperty, ITokenPropertyPermission} from '../util/playgrounds/types';19import {IProperty, ITokenPropertyPermission} from '../util/playgrounds/types';
20import {IKeyringPair} from '@polkadot/types/types';20import {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 {