Skip to content

Commit

Permalink
GREEN-42 merge with dev
Browse files Browse the repository at this point in the history
  • Loading branch information
tonititi committed May 20, 2024
1 parent d185f9d commit 2fa7fe2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/external/Collector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -247,7 +247,7 @@ class Collector extends BaseExternal {
return await this.inner_getBlock(blockSearchValue, blockSearchType, details)
}

async calculateTransactionRoot(txns: String[]): Promise<String> {
async calculateTransactionRoot(txns: string[]): Promise<string> {
const trie = new BaseTrie()
for (let i = 0; i < txns.length; i++) {
// i now is also the transactionIndex of transaction in the block
Expand Down

0 comments on commit 2fa7fe2

Please sign in to comment.