Skip to content

Commit

Permalink
remove import
Browse files Browse the repository at this point in the history
  • Loading branch information
adaki2004 committed Oct 16, 2023
1 parent e7ddfe7 commit 2483a37
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/bridge-ui/src/proof/ProofService.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Contract, ethers } from 'ethers';
import { RLP } from 'ethers/lib/utils.js';

import { crossChainSyncABI } from '../constants/abi';
import type { Block } from '../domain/block';
Expand Down Expand Up @@ -55,7 +54,7 @@ export class ProofService implements Prover {
blockHeight: number,
) {
// RLP encode the proof together for LibTrieProof to decode
const encodedProof = RLP.encode(proof.storageProof[0].proof);
const encodedProof = ethers.utils.RLP.encode(proof.storageProof[0].proof);

// Encode the SignalProof struct:
// struct SignalProof {
Expand Down

0 comments on commit 2483a37

Please sign in to comment.