Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix batch single tx #266

Merged
merged 5 commits into from
Jan 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading