Skip to content

Commit

Permalink
Fix dd indexing logic
Browse files Browse the repository at this point in the history
  • Loading branch information
AllFi committed Jun 10, 2024
1 parent 27e77bf commit 51e98cc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions zp-relayer/pool/BasePool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,15 +262,14 @@ export abstract class BasePool<N extends Network = Network> {
// Direct deposit case
const res = AbiCoder.decodeParameters(
[
'uint256', // Root after
'uint256[]', // Indices
'uint256', // Out commit
'uint256[8]', // Deposit proof
'uint256[8]', // Tree proof
'address', // Prover
],
input.slice(10) // Cut off selector
)
outCommit = res[2]
outCommit = res[1]
memo = truncateHexPrefix(message || '')
} else if (input.startsWith(transactSelector)) {
// Normal tx case
Expand Down

0 comments on commit 51e98cc

Please sign in to comment.