Skip to content

Commit

Permalink
task: add missing library
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyLaw committed Mar 21, 2022
1 parent 210dd81 commit 3626627
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/store/block.js
Expand Up @@ -17,13 +17,6 @@
*/

import Lock from './lock';
import { filters, Constants } from '../config';
import helper from '../helper';
import {
ListenerService,
BlockService,
AccountService,
} from '../infrastructure';
import {
DataSet,
Pagination,
Expand All @@ -32,6 +25,15 @@ import {
getMutationsFromManagers,
getActionsFromManagers
} from './manager';
import { filters, Constants } from '../config';
import helper from '../helper';
import {
ListenerService,
BlockService,
AccountService,
ReceiptService
} from '../infrastructure';
import { UInt64, ReceiptType } from 'symbol-sdk';
import Vue from 'vue';

const managers = [
Expand Down Expand Up @@ -131,7 +133,7 @@ export default {
async subscribe ({ commit, dispatch, getters, rootGetters }) {
if (null === getters.getSubscription) {
const subscription = await ListenerService.subscribeNewBlock(
async (item) => {
async item => {
const blockHeight = Number(item.height.toString());

const [latestBlock, balanceTransferReceipt] = await Promise.all([
Expand Down

0 comments on commit 3626627

Please sign in to comment.