Skip to content

Commit

Permalink
avail stake fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rcrvano committed Aug 30, 2024
1 parent 7659d5c commit 862fbca
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,10 @@ export class PolkadotStakingProcessorPolkadotHelper {
): Promise<[any, Exposure, ValidatorPrefs]> {
const apiAtBlock = await this.polkadotApi.at(blockHash)
const runtime: any = await apiAtBlock.query.system.lastRuntimeUpgrade()
if (runtime.unwrap().specVersion.toNumber() >= 1002000 || environment.NETWORK === 'avail') {
if (runtime.unwrap().specVersion.toNumber() >= 1002000 ||
(environment.NETWORK === 'vara' && runtime.unwrap().specVersion.toNumber() >= 1500) ||
environment.NETWORK === 'avail'
) {
this.logger.info(`Era: ${eraId}. getStakersInfoNew`)
return this.getStakersInfoNew(apiAtBlock, eraId, validatorAccountId)
} else {
Expand Down

0 comments on commit 862fbca

Please sign in to comment.