Skip to content

Commit

Permalink
return add bundle receipt (#1851)
Browse files Browse the repository at this point in the history
* return add bundle receipt

Signed-off-by: belbazanas <[email protected]>

* update changelog

Signed-off-by: belbazanas <[email protected]>

* remove changelog version

Signed-off-by: belbazanas <[email protected]>

---------

Signed-off-by: belbazanas <[email protected]>
  • Loading branch information
anasbelbaz authored Mar 11, 2024
1 parent 0d9a763 commit 41d7f74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Next version

- add tx receipt in addbunddle

# 2.0.5-39

# 2.0.5-39
Expand Down
6 changes: 2 additions & 4 deletions src/amplifier/mangroveAmplifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class MangroveAmplifier {
*/
public async addBundle(
data: z.input<typeof addBundleParams>,
): Promise<BigNumber> {
): Promise<ethers.ContractReceipt> {
const {
outboundToken,
outboundVolume,
Expand Down Expand Up @@ -155,9 +155,7 @@ class MangroveAmplifier {
data: { receipt },
});

const bundleId = receipt.events?.filter((e) => e.event === "InitBundle")[0]
.args?.bundleId;
return BigNumber.from(bundleId);
return receipt;
}

/**
Expand Down

0 comments on commit 41d7f74

Please sign in to comment.