Skip to content
This repository has been archived by the owner on Jun 16, 2022. It is now read-only.

Update live-common #1808

Merged
merged 10 commits into from
Jul 13, 2021
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 19 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,20 +57,20 @@
},
"dependencies": {
"@ledgerhq/compressjs": "^1.3.2",
"@ledgerhq/devices": "6.0.2",
"@ledgerhq/devices": "6.1.0",
"@ledgerhq/errors": "6.0.2",
"@ledgerhq/hw-app-btc": "6.0.2",
"@ledgerhq/hw-app-eth": "6.0.2",
"@ledgerhq/hw-app-xrp": "6.0.2",
"@ledgerhq/hw-transport": "6.0.2",
"@ledgerhq/hw-transport-http": "6.0.2",
"@ledgerhq/live-common": "20.1.2",
"@ledgerhq/hw-app-btc": "6.1.0",
"@ledgerhq/hw-app-eth": "6.1.0",
"@ledgerhq/hw-app-xrp": "6.1.0",
"@ledgerhq/hw-transport": "6.1.0",
"@ledgerhq/hw-transport-http": "6.1.0",
"@ledgerhq/live-common": "^20.3.3",
"@ledgerhq/logs": "6.0.2",
"@ledgerhq/react-native-hid": "6.0.2",
"@ledgerhq/react-native-hw-transport-ble": "6.0.2",
"@ledgerhq/react-native-hid": "6.1.0",
"@ledgerhq/react-native-hw-transport-ble": "6.1.0",
"@ledgerhq/react-native-ledger-core": "4.19.1",
"@ledgerhq/react-native-passcode-auth": "^2.1.0",
"@polkadot/reactnative-identicon": "0.81.1",
"@polkadot/reactnative-identicon": "0.83.1",
"@react-native-community/art": "^1.1.2",
"@react-native-community/async-storage": "^1.12.1",
"@react-native-community/clipboard": "^1.5.1",
Expand All @@ -84,6 +84,7 @@
"@tradle/react-native-http": "^2.0.0",
"assert": "^2.0.0",
"async": "^3.2.0",
"asyncstorage-down": "^4.2.0",
"axios": "^0.21.1",
"bignumber.js": "^9.0.1",
"browserify-zlib": "~0.2.0",
Expand Down Expand Up @@ -113,7 +114,7 @@
"path-browserify": "1.0.1",
"prando": "^5.1.2",
"process": "^0.11.0",
"qrloop": "^1.1.0",
"qrloop": "^1.2.0",
"querystring": "^0.2.0",
"querystring-es3": "~0.2.0",
"re-reselect": "^3.4.0",
Expand Down Expand Up @@ -201,10 +202,15 @@
"metro-react-native-babel-preset": "^0.59.0",
"prettier": "^1.19.1",
"react-native-debugger-open": "^0.3.25",
"rn-nodeify": "^10.2.0",
"ws": "^7.4.6",
"rn-nodeify": "10.3.0",
"ws": "^7.5.2",
"yarn-deduplicate": "^2.1.1"
},
"resolutions": {
"**/pbkdf2": "3.1.1",
"**/**/pbkdf2": "3.1.1",
"**/**/**/pbkdf2": "3.1.1"
},
"react-native": {
"zlib": "browserify-zlib",
"console": "console-browserify",
Expand Down
3 changes: 3 additions & 0 deletions src/live-common-setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import withStaticURLs from "@ledgerhq/hw-transport-http";
import { retry } from "@ledgerhq/live-common/lib/promise";
import { setEnv } from "@ledgerhq/live-common/lib/env";
import { setSupportedCurrencies } from "@ledgerhq/live-common/lib/currencies";
import { setPlatformVersion } from "@ledgerhq/live-common/lib/platform/version";
import { registerTransportModule } from "@ledgerhq/live-common/lib/hw";
import type { TransportModule } from "@ledgerhq/live-common/lib/hw";
import { setDeviceMode } from "@ledgerhq/live-common/lib/hw/actions/app";
Expand All @@ -16,6 +17,8 @@ import "./experimental";

setDeviceMode("polling");

setPlatformVersion("0.0.1");

setSupportedCurrencies([
"bitcoin",
"ethereum",
Expand Down
3 changes: 2 additions & 1 deletion src/screens/OperationDetails/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { View, StyleSheet, Linking } from "react-native";
import { Trans } from "react-i18next";
import { useTheme } from "@react-navigation/native";
import type { Account } from "@ledgerhq/live-common/lib/types/account";
import { getAccountCurrency } from "@ledgerhq/live-common/lib/account/helpers";
import ExternalLink from "../../icons/ExternalLink";
import Button from "../../components/Button";

Expand All @@ -16,7 +17,7 @@ type Props = {
function Footer({ url, urlWhatIsThis, account }: Props) {
const { colors } = useTheme();

const currencyId = account.currency.name;
const currencyId = getAccountCurrency(account).id;
return (
<View
style={[
Expand Down
Loading