diff --git a/package.json b/package.json index 3eb373758..08eaac487 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "@reduxjs/toolkit": "^1.9.0", "@rsksmart/rif-id-mnemonic": "^0.1.1", "@rsksmart/rif-relay-light-sdk": "^1.0.12", - "@rsksmart/rif-wallet-abi-enhancer": "^1.0.7", + "@rsksmart/rif-wallet-abi-enhancer": "^1.0.8", "@rsksmart/rif-wallet-adapters": "^1.0.0", "@rsksmart/rif-wallet-bitcoin": "^1.2.0", "@rsksmart/rif-wallet-core": "^1.0.2", diff --git a/src/lib/i18n.ts b/src/lib/i18n.ts index e4b89a534..d53ce7ef8 100644 --- a/src/lib/i18n.ts +++ b/src/lib/i18n.ts @@ -374,6 +374,7 @@ const resources = { 'URI is not valid. Please try with a new URI.', ramp_error_title: 'Not Available', ramp_error: 'Adding funds is not available yet.', + wallet_deployment_label: 'Rif Wallet Deployment', }, }, es: { diff --git a/src/screens/activity/ActivityRow.tsx b/src/screens/activity/ActivityRow.tsx index 6f47fe60b..ed75b991c 100644 --- a/src/screens/activity/ActivityRow.tsx +++ b/src/screens/activity/ActivityRow.tsx @@ -2,6 +2,7 @@ import { useCallback, useMemo } from 'react' import { useTranslation } from 'react-i18next' import { StyleProp, ViewStyle } from 'react-native' import { RIFWallet } from '@rsksmart/rif-wallet-core' +import { ZERO_ADDRESS } from '@rsksmart/rif-relay-light-sdk' import { roundBalance, shortAddress } from 'lib/utils' @@ -66,7 +67,13 @@ export const ActivityBasicRow = ({ // Label const firstLabel = amIReceiver ? t('received_from') : t('sent_to') const secondLabel = contact?.name || shortAddress(address) - const label = `${firstLabel} ${secondLabel}` + let label = `${firstLabel} ${secondLabel}` + if ( + to === ZERO_ADDRESS && + from.toLowerCase() === wallet.smartWalletFactory.address.toLowerCase() + ) { + label = t('wallet_deployment_label') + } // USD Balance const usdBalance = roundBalance(price, 2) diff --git a/yarn.lock b/yarn.lock index 9e2e1f7b1..4157f9dd0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2040,10 +2040,10 @@ "@rsksmart/rif-wallet-token" "*" axios "^0.27.2" -"@rsksmart/rif-wallet-abi-enhancer@^1.0.7": - version "1.0.7" - resolved "https://npm.pkg.github.com/download/@rsksmart/rif-wallet-abi-enhancer/1.0.7/c33b6fe6903427dbadafd9dbeb1472f0e1b1ea15#c33b6fe6903427dbadafd9dbeb1472f0e1b1ea15" - integrity sha512-hw+ZuPlPGvOcpzwqX6dNj4qNdfefiZCSYMF2wcwFXD/IsoeE0ZYFWD7xkvgfb8nDcCRBPdlj0ALwxkoTuW7qWA== +"@rsksmart/rif-wallet-abi-enhancer@^1.0.8": + version "1.0.8" + resolved "https://npm.pkg.github.com/download/@rsksmart/rif-wallet-abi-enhancer/1.0.8/5c861745f54e45c45f4222d2f42dbb44c851993d#5c861745f54e45c45f4222d2f42dbb44c851993d" + integrity sha512-7e6jI/irtLM87e7yfvDrLjPpd/vqTPfAde/rjQqvfa2ne6Bdh4lZbj7J6Z0ANmIZRqq2JdJIwl+W+ISnZv4zMQ== dependencies: "@ethersproject/abi" "^5.7.0" "@ethersproject/abstract-provider" "^5.7.0"