diff --git a/src/main/java/im/status/wallet/WalletApplet.java b/src/main/java/im/status/wallet/WalletApplet.java index 632059d..5dedecf 100644 --- a/src/main/java/im/status/wallet/WalletApplet.java +++ b/src/main/java/im/status/wallet/WalletApplet.java @@ -324,7 +324,7 @@ public class WalletApplet extends Applet { */ private short getApplicationStatus(byte[] apduBuffer, short off) { apduBuffer[off++] = TLV_APPLICATION_STATUS_TEMPLATE; - apduBuffer[off++] = 9; + apduBuffer[off++] = 12; apduBuffer[off++] = TLV_PIN_RETRY_COUNT; apduBuffer[off++] = 1; apduBuffer[off++] = pin.getTriesRemaining(); diff --git a/src/test/java/im/status/wallet/WalletAppletTest.java b/src/test/java/im/status/wallet/WalletAppletTest.java index 07a0cda..21d3981 100644 --- a/src/test/java/im/status/wallet/WalletAppletTest.java +++ b/src/test/java/im/status/wallet/WalletAppletTest.java @@ -296,21 +296,21 @@ public class WalletAppletTest { response = cmdSet.getStatus(WalletApplet.GET_STATUS_P1_APPLICATION); assertEquals(0x9000, response.getSW()); byte[] data = response.getData(); - assertTrue(Hex.toHexString(data).matches("a30980010381010582010[0-1]83010[0-1]")); + assertTrue(Hex.toHexString(data).matches("a30c80010381010582010[0-1]83010[0-1]")); response = cmdSet.verifyPIN("123456"); assertEquals(0x63C2, response.getSW()); response = cmdSet.getStatus(WalletApplet.GET_STATUS_P1_APPLICATION); assertEquals(0x9000, response.getSW()); data = response.getData(); - assertTrue(Hex.toHexString(data).matches("a30980010281010582010[0-1]83010[0-1]")); + assertTrue(Hex.toHexString(data).matches("a30c80010281010582010[0-1]83010[0-1]")); response = cmdSet.verifyPIN("000000"); assertEquals(0x9000, response.getSW()); response = cmdSet.getStatus(WalletApplet.GET_STATUS_P1_APPLICATION); assertEquals(0x9000, response.getSW()); data = response.getData(); - assertTrue(Hex.toHexString(data).matches("a30980010381010582010[0-1]83010[0-1]")); + assertTrue(Hex.toHexString(data).matches("a30c80010381010582010[0-1]83010[0-1]")); // Check that key path is empty response = cmdSet.getStatus(WalletApplet.GET_STATUS_P1_KEY_PATH);