--- 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); --- a/tests/src/xcm/xcmUnique.test.ts +++ b/tests/src/xcm/xcmUnique.test.ts @@ -760,7 +760,7 @@ // >>> Propose external motion through council >>> console.log('Propose external motion through council.......'); - const externalMotion = helper.democracy.externalProposeMajority(proposalHash); + const externalMotion = helper.democracy.externalProposeMajority({Legacy: proposalHash}); const encodedMotion = externalMotion?.method.toHex() || ''; const motionHash = blake2AsHex(encodedMotion); console.log('Motion hash is %s', motionHash); @@ -771,7 +771,16 @@ await helper.collective.council.vote(dorothyAccount, motionHash, councilProposalIdx, true); await helper.collective.council.vote(baltatharAccount, motionHash, councilProposalIdx, true); - await helper.collective.council.close(dorothyAccount, motionHash, councilProposalIdx, 1_000_000_000, externalMotion.encodedLength); + await helper.collective.council.close( + dorothyAccount, + motionHash, + councilProposalIdx, + { + refTime: 1_000_000_000, + proofSize: 1_000_000, + }, + externalMotion.encodedLength, + ); console.log('Propose external motion through council.......DONE'); // <<< Propose external motion through council <<< @@ -788,7 +797,16 @@ await helper.collective.techCommittee.vote(baltatharAccount, fastTrackHash, techProposalIdx, true); await helper.collective.techCommittee.vote(alithAccount, fastTrackHash, techProposalIdx, true); - await helper.collective.techCommittee.close(baltatharAccount, fastTrackHash, techProposalIdx, 1_000_000_000, fastTrack.encodedLength); + await helper.collective.techCommittee.close( + baltatharAccount, + fastTrackHash, + techProposalIdx, + { + refTime: 1_000_000_000, + proofSize: 1_000_000, + }, + fastTrack.encodedLength, + ); console.log('Fast track proposal through technical committee.......DONE'); // <<< Fast track proposal through technical committee <<< @@ -899,9 +917,8 @@ }, }, }; - const destWeight = 50000000; - await helper.xTokens.transferMultiasset(randomAccountMoonbeam, asset, destination, destWeight); + await helper.xTokens.transferMultiasset(randomAccountMoonbeam, asset, destination, 'Unlimited'); balanceGlmrTokenFinal = await helper.balance.getEthereum(randomAccountMoonbeam.address);