From 09ca6c216971f7a1994f9feec6047b10a4c844a8 Mon Sep 17 00:00:00 2001 From: Daniel Shiposha Date: Thu, 22 Dec 2022 12:25:32 +0000 Subject: [PATCH] fix: moonriver xcm test --- --- a/tests/src/xcm/xcmQuartz.test.ts +++ b/tests/src/xcm/xcmQuartz.test.ts @@ -740,7 +740,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); @@ -751,7 +751,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 <<< @@ -768,7 +777,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 <<< -- gitstuff