Skip to content

Commit

Permalink
fix: getDefaultTokenContract
Browse files Browse the repository at this point in the history
  • Loading branch information
TravellerOnTheRun committed Feb 20, 2024
1 parent 3e70a0f commit 231c308
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 231c308

Please sign in to comment.