33import kotlin .ExceptionsKt ;
44import kotlin .collections .CollectionsKt ;
55import one .mixin .bot .HttpClient ;
6- import one .mixin .bot .SessionKt ;
76import one .mixin .bot .api .MixinResponse ;
87import one .mixin .bot .extension .Base64ExtensionKt ;
98import one .mixin .bot .extension .ByteArrayExtensionKt ;
@@ -77,7 +76,7 @@ private static void updateFromLegacyPin(HttpClient botClient) throws Exception {
7776
7877 // create user pin
7978 MixinResponse <User > response = userClient .getUserService ().createPinCall (
80- new PinRequest (encryptPin (userAesKey , userPin ), null , null , null , null )
79+ new PinRequest (encryptPin (userAesKey , userPin ), null , null )
8180 ).execute ().body ();
8281 assert response != null ;
8382 if (response .isSuccess ()) {
@@ -87,7 +86,7 @@ private static void updateFromLegacyPin(HttpClient botClient) throws Exception {
8786 }
8887 // verify usr pin
8988 response = userClient .getUserService ().pinVerifyCall (
90- new PinRequest (encryptPin (userAesKey , userPin ), null , null , null , null )
89+ new PinRequest (encryptPin (userAesKey , userPin ), null , null )
9190 ).execute ().body ();
9291 assert response != null ;
9392 if (response .isSuccess ()) {
@@ -103,7 +102,7 @@ private static void updateFromLegacyPin(HttpClient botClient) throws Exception {
103102 // verify tip pin
104103 long timestamp = TimeExtensionKt .nowInUtcNano ();
105104 response = userClient .getUserService ().pinVerifyCall (
106- new PinRequest (encryptTipPin (userAesKey , TipBody .forVerify (timestamp ), keyPair .getPrivateKey ()), null , null , null , timestamp )
105+ new PinRequest (encryptTipPin (userAesKey , TipBody .forVerify (timestamp ), keyPair .getPrivateKey ()), null , timestamp )
107106 ).execute ().body ();
108107 assert response != null ;
109108 if (response .isSuccess ()) {
@@ -141,7 +140,7 @@ private static Account createTipPin(HttpClient botClient) throws IOException, Ti
141140 MixinResponse <User > response = userClient .getUserService ().createPinCall (
142141 new PinRequest (
143142 encryptPin (userAesKey , Bytes .concat (keyPair .getPublicKey (), ByteArrayUtilKt .toBeByteArray (1L ))),
144- null , null , null , null
143+ null , null
145144 )).execute ().body ();
146145 assert response != null ;
147146 if (response .isSuccess ()) {
0 commit comments