Skip to content

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
makoto committed May 20, 2024
1 parent ce40028 commit 05a2788
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions evm-gateway/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ export const propsDecoder: PropsDecoder<CFWRequest> = (
}
};

const flatten = (data: string) => {
return AbiCoder.defaultAbiCoder().encode(['bytes[]'], [data]);
};

export const convertIntoMerkleTrieProof = (proof: StateProof) => {
def flatten(data: string[]) {
return AbiCoder.defaultAbiCoder().encode(['bytes[]'], [data]);
}
return {
stateTrieWitness: flatten(proof.stateTrieWitness),
storageProofs: proof.storageProofs.map(flatten),
Expand Down

0 comments on commit 05a2788

Please sign in to comment.