From 2fa7fe23741a17b85936d28f8c458bf7d23547a3 Mon Sep 17 00:00:00 2001 From: tonititi Date: Mon, 20 May 2024 12:55:19 +0700 Subject: [PATCH] GREEN-42 merge with dev --- src/external/Collector.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/external/Collector.ts b/src/external/Collector.ts index 591d0908..386d79d5 100644 --- a/src/external/Collector.ts +++ b/src/external/Collector.ts @@ -17,7 +17,7 @@ import { BlockCacheManager } from '../cache/BlockCacheManager' import { sleep } from '../utils' import { BaseTrie } from 'merkle-patricia-tree' import RLP from 'rlp' -import { BigNumber } from 'ethers' +import { BigNumber } from '@ethersproject/bignumber' class Collector extends BaseExternal { private blockCacheManager: BlockCacheManager @@ -247,7 +247,7 @@ class Collector extends BaseExternal { return await this.inner_getBlock(blockSearchValue, blockSearchType, details) } - async calculateTransactionRoot(txns: String[]): Promise { + async calculateTransactionRoot(txns: string[]): Promise { const trie = new BaseTrie() for (let i = 0; i < txns.length; i++) { // i now is also the transactionIndex of transaction in the block