Skip to content

Commit

Permalink
fix: useWalletCanPay
Browse files Browse the repository at this point in the history
  • Loading branch information
schmanu committed Feb 14, 2024
1 parent 1cbb7a2 commit decf681
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useWalletCanPay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const useWalletCanPay = ({
// if gasLimit, maxFeePerGas or their walletBalance are missing
if (!gasLimit || !maxFeePerGas || walletBalance === undefined) return true

const totalFee = getTotalFee(maxFeePerGas, maxPriorityFeePerGas, gasLimit)
const totalFee = getTotalFee(maxFeePerGas, gasLimit)

return walletBalance >= totalFee
}
Expand Down

0 comments on commit decf681

Please sign in to comment.