Skip to content

Commit

Permalink
Fix batch single tx (#266)
Browse files Browse the repository at this point in the history
* fix balance msg

* add new batch to manifest

* use batch from manifest

* fix batch single tx
  • Loading branch information
ngmachado authored Jan 31, 2024
1 parent 2631194 commit 023a2a2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/protocol/protocol.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 023a2a2

Please sign in to comment.