Skip to content

Commit

Permalink
fix: getDefaultTokenContract
Browse files Browse the repository at this point in the history
  • Loading branch information
TravellerOnTheRun committed Feb 29, 2024
1 parent a63edae commit 10879d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/shared/utils/tokenValues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ export const getDefaultFeeRelay = (chainId: ChainID) =>
getDefaultTokens(chainId)[0]

export const getDefaultTokenContract = (chainId: ChainID) =>
isRelayWallet ? getDefaultFeeRelay(chainId) : getDefaultFeeEOA()
isRelayWallet
? getDefaultFeeRelay(chainId).contractAddress
: getDefaultFeeEOA().contractAddress

export const getFee = (chainId: ChainID, address?: string) => {
switch (isRelayWallet) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export const ReviewTransactionContainer = ({
}
}

return getDefaultTokenContract(chainId).contractAddress
return getDefaultTokenContract(chainId)
}, [symbol, chainId, getTokenBySymbol])

const fee = useMemo(() => getFee(chainId, txRequest.to), [chainId, txRequest])
Expand Down

0 comments on commit 10879d4

Please sign in to comment.