git.delta.rocks / unique-network / refs/commits / 3109c4721370

difftreelog

fix XCM Moonbeam tests

Daniel Shiposha2023-02-01parent: #e31d9d0.patch.diff
in: master

2 files changed

modifiedtests/src/util/playgrounds/unique.dev.tsdiffbeforeafterboth
--- a/tests/src/util/playgrounds/unique.dev.ts
+++ b/tests/src/util/playgrounds/unique.dev.ts
@@ -159,7 +159,7 @@
 
   constructor(logger: { log: (msg: any, level: any) => void, level: any }, options: {[key: string]: any} = {}) {
     options.helperBase = options.helperBase ?? DevMoonbeamHelper;
-    options.notePreimagePallet = options.notePreimagePallet ?? 'democracy';
+    options.notePreimagePallet = options.notePreimagePallet ?? 'preimage';
 
     super(logger, options);
     this.account = new MoonbeamAccountGroup(this);
modifiedtests/src/xcm/xcmUnique.test.tsdiffbeforeafterboth
760760
761 // >>> Propose external motion through council >>>761 // >>> Propose external motion through council >>>
762 console.log('Propose external motion through council.......');762 console.log('Propose external motion through council.......');
763 const externalMotion = helper.democracy.externalProposeMajority(proposalHash);763 const externalMotion = helper.democracy.externalProposeMajority({Legacy: proposalHash});
764 const encodedMotion = externalMotion?.method.toHex() || '';764 const encodedMotion = externalMotion?.method.toHex() || '';
765 const motionHash = blake2AsHex(encodedMotion);765 const motionHash = blake2AsHex(encodedMotion);
766 console.log('Motion hash is %s', motionHash);766 console.log('Motion hash is %s', motionHash);
775 dorothyAccount,
776 motionHash,
777 councilProposalIdx,
778 {
779 refTime: 1_000_000_000,
780 proofSize: 1_000_000,
781 },
782 externalMotion.encodedLength,
783 );
775 console.log('Propose external motion through council.......DONE');784 console.log('Propose external motion through council.......DONE');
776 // <<< Propose external motion through council <<<785 // <<< Propose external motion through council <<<
801 baltatharAccount,
802 fastTrackHash,
803 techProposalIdx,
804 {
805 refTime: 1_000_000_000,
806 proofSize: 1_000_000,
807 },
808 fastTrack.encodedLength,
809 );
792 console.log('Fast track proposal through technical committee.......DONE');810 console.log('Fast track proposal through technical committee.......DONE');
793 // <<< Fast track proposal through technical committee <<<811 // <<< Fast track proposal through technical committee <<<