From 023a2a218fc9f7ceae036d809ddaa57f6cadb9f9 Mon Sep 17 00:00:00 2001 From: Axe Date: Wed, 31 Jan 2024 18:45:26 +0000 Subject: [PATCH] Fix batch single tx (#266) * fix balance msg * add new batch to manifest * use batch from manifest * fix batch single tx --- src/protocol/protocol.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/protocol/protocol.js b/src/protocol/protocol.js index 10fc3cb8..7d307c7a 100644 --- a/src/protocol/protocol.js +++ b/src/protocol/protocol.js @@ -233,7 +233,11 @@ class Protocol { if (isBatchContractExist) { // on rollups, it's cheaper to always use the batch interface due to smaller calldata (which goes to L1) - const tx = this.app.client.contracts.batch.methods.deleteFlow(superToken, sender, receiver).encodeABI(); + const tx = this.app.client.contracts.batch.methods.deleteFlow(superToken, { + agreementOperation: "0", // CFA delete flow + sender: sender, + receiver: receiver + }).encodeABI(); return { tx: tx, target: this.app.client.contracts.getBatchAddress()}; } else { // on L1s, use the conventional host interface