File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -651,11 +651,10 @@ export async function checkTreasuryPayoutsWhichAreAlreadyApprovedCanBePaid<
651651 // filter those spends which are pending or failed and is neither expired nor early payout
652652 const pendingOrFailedSpends = spends . filter ( ( spend ) => {
653653 const spendData = spend [ 1 ] ?. unwrap ( )
654- return (
655- ( spendData ?. status . isPending || spendData ?. status . isFailed ) && // not pending or failed
656- spendData ?. validFrom . toNumber ( ) < currentRelayChainBlockNumber && //not early payout
657- spendData ?. expireAt . toNumber ( ) > currentRelayChainBlockNumber // not expired
658- )
654+ const isSpendPendingOrFailed = spendData ?. status . isPending || spendData ?. status . isFailed
655+ const isSpendNotEarlyPayout = spendData ?. validFrom . toNumber ( ) < currentRelayChainBlockNumber
656+ const isSpendNotExpired = currentRelayChainBlockNumber < spendData ?. expireAt . toNumber ( )
657+ return isSpendPendingOrFailed && isSpendNotEarlyPayout && isSpendNotExpired
659658 } )
660659
661660 await assetHubClient . dev . newBlock ( )
@@ -714,7 +713,6 @@ export function baseTreasuryE2ETests<
714713 kind : 'describe' ,
715714 label : testConfig . testSuiteName ,
716715 children : [
717- // yarn test treasury -t "Propose and approve a spend of treasury funds"
718716 {
719717 kind : 'test' ,
720718 label : 'Propose and approve a spend of treasury funds' ,
You can’t perform that action at this time.
0 commit comments