diff --git a/mocked_flow.go b/mocked_flow.go index 9a14d2d..fc4166d 100644 --- a/mocked_flow.go +++ b/mocked_flow.go @@ -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 - } + mkf.initialReaderState = readerState + mkf.currentReaderState = readerState + mkf.insertedKeycard = newKeycard + mkf.insertedKeycardHelper = newKeycardHelper return mkf.storeRegisteredKeycards() } diff --git a/mocked_types.go b/mocked_types.go index 5fb6650..1e128fd 100644 --- a/mocked_types.go +++ b/mocked_types.go @@ -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"), }, }, }