Skip to content

Commit

Permalink
calling election function ditrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
soloseng committed Jan 28, 2025
1 parent 654ca92 commit 0883239
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/celotool/src/e2e-tests/governance_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,17 @@ describe('governance tests', () => {
const lastEpochBlock = getLastEpochBlock(blockNumber, epoch)
const memberAccounts = await getValidatorGroupMembers(lastEpochBlock)
console.log(`### Got memberAccounts: ${memberAccounts}`)

const signer0 = await election.methods
.validatorSignerAddressFromCurrentSet(0)
.call({}, blockNumber)

const signer1 = await election.methods
.validatorSignerAddressFromCurrentSet(1)
.call({}, blockNumber)

console.log(`### Got signer0: ${signer0}`)
console.log(`### Got signer1: ${signer1}`)
const memberSigners = await Promise.all(
memberAccounts.map((v: string) => getValidatorSigner(v, lastEpochBlock))
)
Expand Down

0 comments on commit 0883239

Please sign in to comment.