Skip to content

Commit

Permalink
fix: checksum address for spending limit transfer confirmation
Browse files Browse the repository at this point in the history
  • Loading branch information
ElvisKrop committed Dec 20, 2023
1 parent 008bb20 commit 718e7d8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import { WrongChainWarning } from '@/components/tx/WrongChainWarning'
import { asError } from '@/services/exceptions/utils'
import TxCard from '@/components/tx-flow/common/TxCard'
import { TxModalContext } from '@/components/tx-flow'
import { checksumAddress } from '@/utils/addresses'

export type SpendingLimitTxParams = {
safeAddress: string
Expand Down Expand Up @@ -56,7 +57,7 @@ const ReviewSpendingLimitTx = ({
() => ({
safeAddress,
token: spendingLimit?.token.address || ZERO_ADDRESS,
to: params.recipient,
to: checksumAddress(params.recipient),
amount: parseUnits(params.amount, token?.tokenInfo.decimals).toString(),
paymentToken: ZERO_ADDRESS,
payment: 0,
Expand Down

0 comments on commit 718e7d8

Please sign in to comment.