Unverified Commit c98b2cc5 authored by Hanwen Cheng's avatar Hanwen Cheng Committed by GitHub

chore: update dot naming (#683)

* chore: update dot naming

* update terminology
parent 29bcf80d
Pipeline #105366 failed with stages
in 2 minutes and 38 seconds
...@@ -14,6 +14,8 @@ Here we can see the chain specifications like `Network Name`, `Address Prefix`, ...@@ -14,6 +14,8 @@ Here we can see the chain specifications like `Network Name`, `Address Prefix`,
On the right side is the QR Code we need. On the right side is the QR Code we need.
## 2. Scan metadata QR code with Parity Signer
Now on the Parity Signer app, click the QR scanner Button anywhere on the app, and scan this QR code, you will have the new Network added to Parity Signer. You can now create accounts under it and sign extrinsic with this network. Now on the Parity Signer app, click the QR scanner Button anywhere on the app, and scan this QR code, you will have the new Network added to Parity Signer. You can now create accounts under it and sign extrinsic with this network.
![Network Metadata Added on Parity Signer](images/Network-Metadata-Added.png) ![Network Metadata Added on Parity Signer](images/Network-Metadata-Added.png)
......
...@@ -168,7 +168,7 @@ const substrateNetworkBase: Record<string, SubstrateNetworkDefaultConstant> = { ...@@ -168,7 +168,7 @@ const substrateNetworkBase: Record<string, SubstrateNetworkDefaultConstant> = {
pathId: 'polkadot', pathId: 'polkadot',
prefix: 0, prefix: 0,
title: 'Polkadot', title: 'Polkadot',
unit: 'New DOT' unit: 'DOT'
}, },
[SubstrateNetworkKeys.SUBSTRATE_DEV]: { [SubstrateNetworkKeys.SUBSTRATE_DEV]: {
color: '#18FFB2', color: '#18FFB2',
......
...@@ -180,9 +180,6 @@ export default function Scanner({ ...@@ -180,9 +180,6 @@ export default function Scanner({
) : ( ) : (
<View style={styles.bottom}> <View style={styles.bottom}>
<Text style={styles.descTitle}>Scan QR Code</Text> <Text style={styles.descTitle}>Scan QR Code</Text>
<Text style={styles.descSecondary}>
To Sign a New Transaction
</Text>
</View> </View>
)} )}
{missedFrames && missedFrames.length >= 1 && ( {missedFrames && missedFrames.length >= 1 && (
......
...@@ -71,9 +71,7 @@ function SignedTxView({ ...@@ -71,9 +71,7 @@ function SignedTxView({
return ( return (
<SafeAreaScrollViewContainer> <SafeAreaScrollViewContainer>
<Text style={styles.topTitle}> <Text style={styles.topTitle}>Signed extrinsic</Text>
Signed {isEthereum ? 'transaction' : 'extrinsic'}
</Text>
<Separator <Separator
shadow={true} shadow={true}
style={{ style={{
......
...@@ -306,7 +306,7 @@ export function useScannerContext(): ScannerContextState { ...@@ -306,7 +306,7 @@ export function useScannerContext(): ScannerContextState {
txRequest.data.account txRequest.data.account
) )
) { ) {
throw new Error('Scanned QR contains no valid transaction'); throw new Error('Scanned QR contains no valid extrinsic');
} }
let tx, networkKey, recipientAddress, dataToSign; let tx, networkKey, recipientAddress, dataToSign;
if (isEthereumCompletedParsedData(txRequest)) { if (isEthereumCompletedParsedData(txRequest)) {
...@@ -427,12 +427,12 @@ export function useScannerContext(): ScannerContextState { ...@@ -427,12 +427,12 @@ export function useScannerContext(): ScannerContextState {
); );
default: default:
throw new Error( throw new Error(
'Scanned QR should contain either transaction or a message to sign' 'Scanned QR should contain either extrinsic or a message to sign'
); );
} }
} else { } else {
throw new Error( throw new Error(
'Scanned QR should contain either transaction or a message to sign' 'Scanned QR should contain either extrinsic or a message to sign'
); );
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment