Skip to content

Commit

Permalink
fix polkadot error (#552)
Browse files Browse the repository at this point in the history
  • Loading branch information
faboweb authored Apr 1, 2020
1 parent 8932bdb commit 2c5bacd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/block-listeners/polkadot-node-subscription.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class PolkadotNodeSubscription {
scope.setExtra('height', blockHeight)
})

const block = await this.polkadotAPI.getBlockByHeight(blockHeight)
const block = await this.polkadotAPI.getBlockByHeightV2(blockHeight)
this.enqueueAndPublishBlockAdded(block)

// We dont need to fetch validators on every new block.
Expand Down

0 comments on commit 2c5bacd

Please sign in to comment.