Skip to content

Commit

Permalink
fix: 🐛 revert metadata 2002.json to master version and fix issue on n…
Browse files Browse the repository at this point in the history
…etwork tests
  • Loading branch information
Ignazio Bovo committed Mar 27, 2024
1 parent d1ec38b commit b2fa736
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
6 changes: 1 addition & 5 deletions query-node/chain-metadata/2002.json

Large diffs are not rendered by default.

11 changes: 2 additions & 9 deletions tests/network-tests/src/flows/working-groups/groupBudget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,13 @@ export default async function groupBudget({ api, query, lock }: FlowProps): Prom
await new FixtureRunner(fundWorkingGroupBudgetFixture).runWithQueryNodeChecks()

const recievers = (await api.createKeyPairs(5)).map(({ key }) => key.address)
const vestingSchedules = recievers.map((reciever, i) => {
const locked = new BN(10000 * (i + 1))
return {
locked,
// for even numbers give 10 blocks vesting
perBlock: i % 2 === 0 ? locked.divn(10) : locked,
}
})
const amounts = recievers.map((reciever, i) => new BN(10000 * (i + 1)))

let unlockMembershipBudget
if (group === 'membershipWorkingGroup') {
unlockMembershipBudget = await lock(Resource.MembershipWgBudget)
}
const spendGroupBudgetFixture = new SpendBudgetFixture(api, query, group, recievers, vestingSchedules)
const spendGroupBudgetFixture = new SpendBudgetFixture(api, query, group, recievers, amounts)
await new FixtureRunner(spendGroupBudgetFixture).runWithQueryNodeChecks()
if (unlockMembershipBudget !== undefined) {
unlockMembershipBudget()
Expand Down

0 comments on commit b2fa736

Please sign in to comment.