From 51e98cc68a62e13269c7ec2961b6a05430546faa Mon Sep 17 00:00:00 2001 From: Alexander Filippov Date: Mon, 10 Jun 2024 15:21:40 +0300 Subject: [PATCH] Fix dd indexing logic --- zp-relayer/pool/BasePool.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/zp-relayer/pool/BasePool.ts b/zp-relayer/pool/BasePool.ts index bb53805..f7248bc 100644 --- a/zp-relayer/pool/BasePool.ts +++ b/zp-relayer/pool/BasePool.ts @@ -262,15 +262,14 @@ export abstract class BasePool { // 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