fix: details of the default export flow updated

This commit is contained in:
Sale Djenic 2023-11-14 16:39:11 +01:00 committed by saledjenic
parent 1a86f57a96
commit b29cbbfef6
2 changed files with 7 additions and 9 deletions

View File

@ -178,12 +178,10 @@ func (mkf *MockedKeycardFlow) RegisterKeycard(cardIndex int, readerState MockedR
mkf.registeredKeycards[cardIndex] = newKeycard
mkf.registeredKeycardHelpers[cardIndex] = newKeycardHelper
if mkf.currentReaderState == KeycardInserted && cardIndex == 1 {
mkf.initialReaderState = readerState
mkf.currentReaderState = readerState
mkf.insertedKeycard = newKeycard
mkf.insertedKeycardHelper = newKeycardHelper
}
return mkf.storeRegisteredKeycards()
}

View File

@ -99,9 +99,9 @@ var mockedKeycardHelper = MockedKeycard{
PrivateKey: []byte("0000000000000000000000000000000000000000000000000000000000000001"),
},
"m/44'/60'/0'/0/1": {
Address: "0x0000000000000000000000000000000000000001",
PublicKey: []byte("0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001"),
PrivateKey: []byte("0000000000000000000000000000000000000000000000000000000000000001"),
Address: "0x0000000000000000000000000000000000000002",
PublicKey: []byte("0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002"),
PrivateKey: []byte("0000000000000000000000000000000000000000000000000000000000000002"),
},
},
}