Skip to content

Commit

Permalink
Switch all hex to bytes conversions to ethjs equivalents
Browse files Browse the repository at this point in the history
  • Loading branch information
alivia-g committed Sep 25, 2024
1 parent 62d80b5 commit 20c8177
Show file tree
Hide file tree
Showing 450 changed files with 53,553 additions and 15,741 deletions.
258 changes: 245 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Button } from '@chakra-ui/react'
import { Block } from '@ethereumjs/block'
import { addRLPSerializedBlock, ethJsBlockToEthersBlockWithTxs, fromHexString } from 'portalnetwork'
import { addRLPSerializedBlock, ethJsBlockToEthersBlockWithTxs, hexToBytes } from 'portalnetwork'
import React, { useContext } from 'react'
import { AppContext, AppContextType, StateChange } from '../globalReducer'

Expand All @@ -22,7 +22,7 @@ export default function ContentManager() {
dispatch({
type: StateChange.SETBLOCK,
payload: await ethJsBlockToEthersBlockWithTxs(
Block.fromRLPSerializedBlock(Buffer.from(fromHexString(last[1].rlp)), {
Block.fromRLPSerializedBlock(Buffer.from(hexToBytes(last[1].rlp)), {
hardforkByBlockNumber: true,
})
),
Expand Down
Loading

0 comments on commit 20c8177

Please sign in to comment.