-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
major: HDKD feature #431
Merged
Merged
major: HDKD feature #431
Changes from all commits
Commits
Show all changes
213 commits
Select commit
Hold shift + click to select a range
299a4f1
create legacy account list and identities switch
hanwencheng 1684f5e
refactor account store for legacyAccountList view
hanwencheng cfe94db
init identityNew screen
hanwencheng c7046a8
style: logo
goldsteinsveta a8f363d
style: color change
goldsteinsveta 3d62488
react vector icons
goldsteinsveta d80de72
component: ButtonIcon
goldsteinsveta 2302783
IdentitySwitch in header
goldsteinsveta 1570c10
rename empty to emptyAccount
hanwencheng ce54939
finish identityNew screen data binding
hanwencheng 51c16ae
Update IdentitiesSwitch.js
hanwencheng d13e4cf
Merge branch 'sveta-hanwen-hdkd' of github.com:paritytech/parity-sign…
hanwencheng 7c21fb0
style: header
goldsteinsveta 3fb0a47
Merge branch 'sveta-hanwen-hdkd' of https://github.com/paritytech/par…
goldsteinsveta 3fe146d
ButtonIcon text option
goldsteinsveta 7f614c1
remove useless isWelcome and fix lint error
hanwencheng 27aaa78
fix typo
hanwencheng 577d1f4
refactor LegacyAccountBackup
hanwencheng 3401d9c
init IdentityNew
hanwencheng 205fbdc
ButtonIcon onPress isRequired
goldsteinsveta cb6ddcc
font styles component
goldsteinsveta b571590
style: IdentitySwitch
goldsteinsveta 7793d2f
style mop up: IdentitySwitch
goldsteinsveta d75b537
style chores
goldsteinsveta 800ede0
style: listed cards
goldsteinsveta bbe3bf4
basic account creation for identity backup screen
hanwencheng 8a5d986
Merge branch 'sveta-hanwen-hdkd' of github.com:paritytech/parity-sign…
hanwencheng 60691c2
IdentityBackup, IdentityPin, PathsList
hanwencheng 4956572
shadow and misc styles
goldsteinsveta e262ca5
style mop up: listed cards
goldsteinsveta f1e626e
network logos
goldsteinsveta 43f0c9d
AccountCard can function as a networkButton
goldsteinsveta 405bc8a
style: layout containers for screens with AccountCard
goldsteinsveta 78c681e
style and fixedPrefix prop for TextInput
goldsteinsveta 7274e4b
fontStyle for seed phrases
goldsteinsveta bab50c1
unlock logic, new seed generation, path derivation
hanwencheng 62bd973
prepared place for identityList
goldsteinsveta 6bd0fa6
integrate idenity serializer
hanwencheng 709cc56
add and move specs to certain foler
hanwencheng 3db9171
Merge branch 'sveta-hanwen-hdkd' of github.com:paritytech/parity-sign…
hanwencheng f5acd00
Button props
goldsteinsveta 41c239c
show path with netwok
hanwencheng 74c5e6f
merge
goldsteinsveta 8502d11
Merge branch 'sveta-hanwen-hdkd' of https://github.com/paritytech/par…
goldsteinsveta 1f6df62
data bind with derivation path screen
hanwencheng 92992ed
Merge branch 'sveta-hanwen-hdkd' of https://github.com/paritytech/par…
hanwencheng 8c5730a
remove navigationOptions and refactoring to stateless component
hanwencheng a2388be
finish identity recover feature
hanwencheng 4f83d72
fix all lint warnings
hanwencheng 7270d90
current identity label on identitiesSwitch
hanwencheng fd5b027
identiy management and identity backup
hanwencheng 2019608
fix derivation and add error handling for wrong derivation path
hanwencheng 1c7a7b8
group paths in paths list screen
hanwencheng 6f65dc5
show path name
hanwencheng f1a4e6b
path details screen, delete path function
hanwencheng c2492c7
add Path Management Screen
hanwencheng 2f0050b
reset disconnect behaviour
hanwencheng ad08dee
use accountId as address
hanwencheng 3d596f3
ethereum account list in idenitty and remove legacy account creation
hanwencheng d025975
signing function for the account in identity store
hanwencheng 9d8749e
fix according to YJ review, reset some navigation behavior
hanwencheng e0fbad8
Merge branch 'master' into sveta-hanwen-hdkd
hanwencheng ab7f101
fix some warnings
hanwencheng bdc5518
Update SecurityHeader.js
hanwencheng 20d98f8
scrollable identitySwitch
Tbaut 44a7386
show only available networks
hanwencheng 6201210
rephrase backup identity
hanwencheng c0c237a
add scan buttton to the bottom
hanwencheng d928cca
start screen with network chooser
hanwencheng c31f555
conflicts
Tbaut c54069f
revert conflicts
Tbaut 73ee87f
settings
Tbaut 2212081
Revert "revert conflicts"
hanwencheng fcef811
e2e test for default substrate account creation
hanwencheng c1f29e7
e2e test for derivation hard key
hanwencheng 866e176
show no accountt hint text on androiid
hanwencheng 69c93bf
refactor qr scanner
hanwencheng c32fd84
Merge branch 'master' into sveta-hanwen-hdkd
hanwencheng cdb5e42
add identity management dropdown to every identity
Tbaut 9f3d3aa
Merge branch 'sveta-hanwen-hdkd' of github.com:paritytech/parity-sign…
Tbaut edc256c
style: identity screen
goldsteinsveta 8967761
fix initial errors
hanwencheng 6fdae56
Merge branch 'sveta-hanwen-hdkd' of github.com:paritytech/parity-sign…
hanwencheng 5975fb1
update account network chooser
hanwencheng eb63e4b
directly navigation to derivation if there is no key
hanwencheng 1db09c9
add path id for kusama dev
hanwencheng ba713f5
directly account creation with ethereum account
hanwencheng 16ff5d1
networkParams example
hanwencheng f863cc5
show error icon if network is unknown
goldsteinsveta 102b240
Merge branch 'sveta-hanwen-hdkd' of https://github.com/paritytech/par…
goldsteinsveta 3c69de0
style: pathCard for non-Substrate
goldsteinsveta 62bdb12
style: group path
goldsteinsveta c1b49cf
style: substrate derivation
goldsteinsveta 6f242df
display path of groupPaths
goldsteinsveta 31bc423
vertical spacing for (un)grouped pathCards
goldsteinsveta ce8081c
fix address issue
hanwencheng bda3687
Merge branch 'sveta-hanwen-hdkd' of github.com:paritytech/parity-sign…
hanwencheng 11ef288
btns: new derivation and scan
goldsteinsveta 5895e0f
style: qr
goldsteinsveta 2f78e7f
delete error handling
hanwencheng dca4eea
Merge branch 'sveta-hanwen-hdkd' of github.com:paritytech/parity-sign…
hanwencheng 3fa5f3f
after delete non-substrate
goldsteinsveta 70b0749
switcher style corrections
goldsteinsveta 6759e3d
antdesign icons
goldsteinsveta f3367c9
icons and headings
goldsteinsveta 570c18d
eth address render fix
goldsteinsveta 9e86b05
heading PathsList
goldsteinsveta b3d2c4d
sign message bug fix, navigate to signedMessage
hanwencheng 5eff2d4
Merge branch 'sveta-hanwen-hdkd' of github.com:paritytech/parity-sign…
hanwencheng 0e88114
style details
goldsteinsveta c3ead11
styles: optimised for smaller screens
goldsteinsveta d9f1b54
ScreenHeader and ButtonMainAction components everywhere
goldsteinsveta 6e2e845
ButtonMainAction display adjustments
goldsteinsveta 59e5247
display logic for different user cases
goldsteinsveta 38ded81
scan button fix
goldsteinsveta be7100b
security and errors
goldsteinsveta 5689f01
upgrade detox to latest version and merge
hanwencheng a66d60f
use new fonts
hanwencheng 158a6cf
Merge branch 'sveta-hanwen-hdkd' of github.com:paritytech/parity-sign…
hanwencheng bc6490b
`add legacy account` button for test backward compatibility
hanwencheng db2260b
add test for delete path
hanwencheng 783a146
textInput adjustments
goldsteinsveta 8a3a09b
Merge branch 'sveta-hanwen-hdkd' of https://github.com/paritytech/par…
goldsteinsveta 3b6bbab
delete idenitity
hanwencheng 25faaf0
Merge branch 'sveta-hanwen-hdkd' of github.com:paritytech/parity-sign…
hanwencheng c4bfcfa
add currentIdentity to pathcard
hanwencheng 6ce21d7
fix test multi item problem
hanwencheng 90a7ff8
add mock file for scanning test
hanwencheng eef2635
mock recover identity and update genesisHash
hanwencheng bafa88a
Screens with seeds
goldsteinsveta e4917e7
Merge branch 'sveta-hanwen-hdkd' of https://github.com/paritytech/par…
goldsteinsveta abc0fdf
screens w popups
goldsteinsveta 8971c4d
identity (mnemonic) icon in paths
goldsteinsveta 91fcc63
add account signing process
hanwencheng 0bd6fef
tested signing process, and bug fixes
hanwencheng de5ac4a
style chores
goldsteinsveta f76e753
Merge branch 'sveta-hanwen-hdkd' of https://github.com/paritytech/par…
goldsteinsveta 612717f
correct signing process
hanwencheng dee8cca
improved touch, scroll and popup behaviours
goldsteinsveta 4876341
new shadows
goldsteinsveta f47cb7a
Merge branch 'sveta-hanwen-hdkd' of https://github.com/paritytech/par…
goldsteinsveta 5a0e6c3
error test @YJ
hanwencheng dae5b06
Merge branch 'sveta-hanwen-hdkd' of github.com:paritytech/parity-sign…
hanwencheng fdb32c4
fix: test_substrate_sign1
pmespresso 9f27c9f
remove test sign1
hanwencheng 0c60e03
fix delete bugs
hanwencheng c5d873d
style onboarding message
goldsteinsveta 54e16be
payload screen styling
hanwencheng ccacfab
fix navigation after scan
hanwencheng 18e00b3
refactor signed screen
hanwencheng 94c4556
Merge branch 'sveta-hanwen-hdkd' of github.com:paritytech/parity-sign…
hanwencheng 432741e
button position @ios fix
goldsteinsveta f9f7508
icon centering @ios fix
goldsteinsveta 66aa5d1
back from debugging
goldsteinsveta 41a3725
lead to identitiesSwitch after deletetion
hanwencheng cb306a2
signed message styling
hanwencheng 628ef95
fix signed message styling
hanwencheng dcd7477
fix signing in ethereum
hanwencheng 262ad62
fix eslint with hooks
hanwencheng c31cca2
use async functions for setState
hanwencheng aaaec04
group alerts
hanwencheng ec1b0c3
more test cases and soft key fix
hanwencheng abdef9f
improve path grouping
hanwencheng e7e9fe9
sort list and add keys
hanwencheng 0e0f377
hide tac buttons after first login
hanwencheng b05090f
put logo on left consistently
hanwencheng 7ac26dd
use alternative for regex look behind
hanwencheng 4ca98aa
fix e2e test
hanwencheng c7f7848
use switchNavigator
hanwencheng 7831d0d
remove logs and remarks
hanwencheng deec818
remove useless code
hanwencheng 4625664
copyright and use strict everywhere
hanwencheng d33a95a
comment out unused code
hanwencheng f6a2b9f
use accountId instead of address
hanwencheng 1cef4a9
remove warnings
hanwencheng 06e0686
remove logo when back button appear
hanwencheng 1702b66
Use about screen instead of settings
hanwencheng 341bf2d
fix grumbles
hanwencheng d952bd0
remove unused refs
hanwencheng 7f80429
Merge branch 'master' into sveta-hanwen-hdkd
hanwencheng ace9df8
style fix
goldsteinsveta faf4ff6
back from debugging
goldsteinsveta 7f61b75
fix card name not shown problem
hanwencheng 842685e
Merge branch 'sveta-hanwen-hdkd' of github.com:paritytech/parity-sign…
hanwencheng 1443bd7
style: Substrate TxDetails
goldsteinsveta c84bd36
Merge branch 'sveta-hanwen-hdkd' of https://github.com/paritytech/par…
goldsteinsveta e0fed40
indication of sender/recipient for PathCards
goldsteinsveta b037544
move duplicated code into component and fix merge error
hanwencheng 91750a2
fix: loading error
hanwencheng 7fbcfb2
Merge branch 'hanwen-fix-loading' into sveta-hanwen-hdkd
hanwencheng a2da1c8
move method to top
hanwencheng 86d8e7a
fix naming in path derivation
hanwencheng f46b71c
separate soften keys from harden
hanwencheng a40183f
use memo to improve performance on pathslist
hanwencheng 148786d
Revert "Merge branch 'hanwen-fix-loading' into sveta-hanwen-hdkd"
hanwencheng d8aafeb
UI fix, fix unclickable legacy items on legacyAccountList
hanwencheng 943a032
TxDetails for small screen
goldsteinsveta c4b684d
8 * 4 = 32
goldsteinsveta aa986bf
fixes according to code review
hanwencheng 9d4af89
extract onPress and use PureComponent if possible
hanwencheng d22e47a
add error handling for derived address generation
hanwencheng 53d9465
fix signing
hanwencheng f3aa579
fix grumbles according to review
hanwencheng 950fcab
save uppercase account id
hanwencheng 09e8fe6
fix styling
hanwencheng da15a39
fix grumbles
hanwencheng 2695486
extract function out of render method
hanwencheng 51ceacf
Update identityManipulation.spec.js
hanwencheng ef64090
fix extra separator
hanwencheng ceb59b4
two buttons in row for small screen
goldsteinsveta 0d1731b
styling fix
hanwencheng 6837eef
Merge branch 'sveta-hanwen-hdkd' of github.com:paritytech/parity-sign…
hanwencheng 97ee84c
remove extra margin
hanwencheng File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
// Copyright 2015-2019 Parity Technologies (UK) Ltd. | ||
// This file is part of Parity. | ||
|
||
// Parity is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
|
||
// Parity is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
|
||
// You should have received a copy of the GNU General Public License | ||
// along with Parity. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
'use strict'; | ||
|
||
import testIDs from './testIDs'; | ||
const { IdentityPin } = testIDs; | ||
|
||
export const testTap = async buttonId => await element(by.id(buttonId)).tap(); | ||
|
||
export const testVisible = async componentId => | ||
await expect(element(by.id(componentId))).toBeVisible(); | ||
|
||
export const testExist = async componentId => | ||
await expect(element(by.id(componentId))).toExist(); | ||
|
||
export const testNotExist = async componentId => | ||
await expect(element(by.id(componentId))).toNotExist(); | ||
|
||
export const testNotVisible = async componentId => | ||
await expect(element(by.id(componentId))).toBeNotVisible(); | ||
|
||
export const tapBack = async () => | ||
await element(by.id(testIDs.Header.headerBackButton)) | ||
.atIndex(0) | ||
.tap(); | ||
|
||
export const testInput = async (inputId, inputText) => { | ||
await element(by.id(inputId)).typeText(inputText); | ||
await element(by.id(inputId)).tapReturnKey(); | ||
}; | ||
|
||
export const testScrollAndTap = async (buttonId, screenId) => { | ||
await waitFor(element(by.id(buttonId))) | ||
.toBeVisible() | ||
.whileElement(by.id(screenId)) | ||
.scroll(100, 'down'); | ||
await testTap(buttonId); | ||
}; | ||
|
||
export const testUnlockPin = async pinCode => { | ||
await testInput(IdentityPin.unlockPinInput, pinCode); | ||
await testTap(IdentityPin.unlockPinButton); | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
// Copyright 2015-2019 Parity Technologies (UK) Ltd. | ||
// This file is part of Parity. | ||
|
||
// Parity is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
|
||
// Parity is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
|
||
// You should have received a copy of the GNU General Public License | ||
// along with Parity. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
'use strict'; | ||
|
||
import testIDs from './testIDs'; | ||
import { | ||
tapBack, | ||
testExist, | ||
testInput, | ||
testNotExist, | ||
testNotVisible, | ||
testScrollAndTap, | ||
testTap, | ||
testUnlockPin, | ||
testVisible | ||
} from './e2eUtils'; | ||
|
||
const { | ||
TacScreen, | ||
AccountNetworkChooser, | ||
IdentitiesSwitch, | ||
IdentityManagement, | ||
IdentityNew, | ||
IdentityBackup, | ||
IdentityPin, | ||
PathDerivation, | ||
PathDetail, | ||
PathsList, | ||
SignedTx, | ||
TxDetails | ||
} = testIDs; | ||
|
||
const pinCode = '123456'; | ||
const mockIdentityName = 'mockIdentity'; | ||
const substrateNetworkButtonIndex = AccountNetworkChooser.networkButton + '2'; //Need change if network list changes | ||
const fundingPath = '//funding/0'; | ||
const mockSeedPhrase = | ||
'split cradle example drum veteran swear cruel pizza guilt surface mansion film grant benefit educate marble cargo ignore bind include advance grunt exile grow'; | ||
|
||
const testSetUpDefaultPath = async () => { | ||
await testInput(IdentityPin.setPin, pinCode); | ||
await testInput(IdentityPin.confirmPin, pinCode); | ||
await testTap(IdentityPin.submitButton); | ||
await testVisible(AccountNetworkChooser.chooserScreen); | ||
await testScrollAndTap( | ||
substrateNetworkButtonIndex, | ||
testIDs.AccountNetworkChooser.chooserScreen | ||
); | ||
await testUnlockPin(pinCode); | ||
await testExist(PathsList.pathCard + '//kusama_CC2//default'); | ||
}; | ||
|
||
describe('Load test', async () => { | ||
beforeAll(async () => { | ||
if (device.getPlatform() === 'ios') { | ||
await device.clearKeychain(); | ||
} | ||
await device.launchApp({ permissions: { camera: 'YES' } }); | ||
}); | ||
|
||
it('should have account list screen', async () => { | ||
await testVisible(TacScreen.tacView); | ||
await testTap(TacScreen.agreePrivacyButton); | ||
await testTap(TacScreen.agreeTacButton); | ||
await testTap(TacScreen.nextButton); | ||
await testVisible(AccountNetworkChooser.noAccountScreen); | ||
}); | ||
|
||
it('recover a identity with seed phrase', async () => { | ||
await testTap(AccountNetworkChooser.recoverButton); | ||
await testVisible(IdentityNew.seedInput); | ||
await element(by.id(IdentityNew.seedInput)).typeText(mockSeedPhrase); | ||
await testInput(IdentityNew.nameInput, mockIdentityName); | ||
await testTap(IdentityNew.recoverButton); | ||
await testSetUpDefaultPath(); | ||
}); | ||
|
||
it('create a new identity with default substrate account', async () => { | ||
await tapBack(); | ||
await testTap(IdentitiesSwitch.toggleButton); | ||
await testTap(IdentitiesSwitch.addIdentityButton); | ||
await testNotVisible(IdentityNew.seedInput); | ||
await testTap(IdentityNew.createButton); | ||
await testVisible(IdentityBackup.seedText); | ||
await testTap(IdentityBackup.nextButton); | ||
await element(by.text('Proceed')).tap(); | ||
await testSetUpDefaultPath(); | ||
}); | ||
|
||
it('derive a new key', async () => { | ||
await testTap(PathsList.deriveButton); | ||
await testInput(PathDerivation.nameInput, 'first one'); | ||
await testInput(PathDerivation.pathInput, fundingPath); | ||
await testTap(PathDerivation.deriveButton); | ||
await testUnlockPin(pinCode); | ||
await testExist(PathsList.pathCard + `//kusama_CC2${fundingPath}`); | ||
}); | ||
|
||
it('delete a path', async () => { | ||
await tapBack(); | ||
await testTap(AccountNetworkChooser.networkButton + '0'); | ||
await testTap(PathsList.pathCard + `//kusama_CC2${fundingPath}`); | ||
await testTap(PathDetail.popupMenuButton); | ||
await testTap(PathDetail.deleteButton); | ||
await element(by.text('Delete')).tap(); | ||
await testUnlockPin(pinCode); | ||
await testNotExist(PathsList.pathCard + `//kusama_CC2${fundingPath}`); | ||
}); | ||
|
||
it('should sign the transaction', async () => { | ||
await tapBack(); | ||
await testTap(AccountNetworkChooser.scanButton); | ||
await testScrollAndTap(TxDetails.signButton, TxDetails.scrollScreen); | ||
await testUnlockPin(pinCode); | ||
await testVisible(SignedTx.qrView); | ||
}); | ||
|
||
it('delete identity', async () => { | ||
await element(by.id(IdentitiesSwitch.toggleButton)) | ||
.atIndex(0) | ||
.tap(); | ||
await testTap(IdentitiesSwitch.manageIdentityButton); | ||
await testTap(IdentityManagement.popupMenuButton); | ||
await testTap(IdentityManagement.deleteButton); | ||
await element(by.text('Delete')).tap(); | ||
await testUnlockPin(pinCode); | ||
await testVisible(IdentitiesSwitch.modal); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// Copyright 2015-2019 Parity Technologies (UK) Ltd. | ||
// This file is part of Parity. | ||
|
||
// Parity is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
|
||
// Parity is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
|
||
// You should have received a copy of the GNU General Public License | ||
// along with Parity. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
'use strict'; | ||
|
||
import { NETWORK_LIST, SubstrateNetworkKeys } from '../src/constants'; | ||
|
||
export const signingTestIdentityPath = `//${NETWORK_LIST[SubstrateNetworkKeys.KUSAMA].pathID}//default`; | ||
|
||
const setRemarkExtrinsicKusama = | ||
'47900000100005301023c36776005aec2f32a34c109dc791a82edef980eec3be80da938ac9bcc68217220170000010c11111165030000fa030000e3777fa922cafbff200cadeaea1a76bd7898ad5b89f7848999058b50e715f636dbb5aefb451e26bd64faf476301f980437d87c0d88dec1a8c7a3eb3cc82e9bbb0ec'; | ||
|
||
export const createMockSignRequest = () => ({ | ||
bounds: { | ||
height: 1440, | ||
origin: [], | ||
width: 1920 | ||
}, | ||
data: '', | ||
rawData: setRemarkExtrinsicKusama, | ||
target: 319, | ||
type: 'QR_CODE' | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: indentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will use
lint:fix
to auto fix these erros by merging the master brach