Skip to content

Commit

Permalink
fix: approval failure with no transaction overrides (#548)
Browse files Browse the repository at this point in the history
Fix approval argument error thrown by ethers
  • Loading branch information
saadahmsiddiqui authored Sep 26, 2024
1 parent 91eb6ba commit cdd4d5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/evm/src/utils/approveAndCheckFns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const approve = async (
const unsignedTx = await tokenInstance.populateTransaction.approve(
spender,
amountOrIdForApproval,
overrides,
overrides ? overrides : {},
);
return unsignedTx;
};

0 comments on commit cdd4d5f

Please sign in to comment.