mirror of
https://github.com/status-im/status-keycard-go.git
synced 2025-01-18 18:31:56 +00:00
fix: details of the default export flow updated
This commit is contained in:
parent
1a86f57a96
commit
b29cbbfef6
@ -178,12 +178,10 @@ func (mkf *MockedKeycardFlow) RegisterKeycard(cardIndex int, readerState MockedR
|
|||||||
mkf.registeredKeycards[cardIndex] = newKeycard
|
mkf.registeredKeycards[cardIndex] = newKeycard
|
||||||
mkf.registeredKeycardHelpers[cardIndex] = newKeycardHelper
|
mkf.registeredKeycardHelpers[cardIndex] = newKeycardHelper
|
||||||
|
|
||||||
if mkf.currentReaderState == KeycardInserted && cardIndex == 1 {
|
mkf.initialReaderState = readerState
|
||||||
mkf.initialReaderState = readerState
|
mkf.currentReaderState = readerState
|
||||||
mkf.currentReaderState = readerState
|
mkf.insertedKeycard = newKeycard
|
||||||
mkf.insertedKeycard = newKeycard
|
mkf.insertedKeycardHelper = newKeycardHelper
|
||||||
mkf.insertedKeycardHelper = newKeycardHelper
|
|
||||||
}
|
|
||||||
|
|
||||||
return mkf.storeRegisteredKeycards()
|
return mkf.storeRegisteredKeycards()
|
||||||
}
|
}
|
||||||
|
@ -99,9 +99,9 @@ var mockedKeycardHelper = MockedKeycard{
|
|||||||
PrivateKey: []byte("0000000000000000000000000000000000000000000000000000000000000001"),
|
PrivateKey: []byte("0000000000000000000000000000000000000000000000000000000000000001"),
|
||||||
},
|
},
|
||||||
"m/44'/60'/0'/0/1": {
|
"m/44'/60'/0'/0/1": {
|
||||||
Address: "0x0000000000000000000000000000000000000001",
|
Address: "0x0000000000000000000000000000000000000002",
|
||||||
PublicKey: []byte("0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001"),
|
PublicKey: []byte("0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002"),
|
||||||
PrivateKey: []byte("0000000000000000000000000000000000000000000000000000000000000001"),
|
PrivateKey: []byte("0000000000000000000000000000000000000000000000000000000000000002"),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user