Skip to content

Commit

Permalink
Enhance deployment transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
sleyter93 committed Oct 11, 2023
1 parent c5b6f8e commit 5978be9
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/lib/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
9 changes: 8 additions & 1 deletion src/screens/activity/ActivityRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down Expand Up @@ -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)
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 5978be9

Please sign in to comment.