diff --git a/library/src/androidTest/java/org/xmtp/android/library/ClientTest.kt b/library/src/androidTest/java/org/xmtp/android/library/ClientTest.kt index 154a7272d..53b4cfcb0 100644 --- a/library/src/androidTest/java/org/xmtp/android/library/ClientTest.kt +++ b/library/src/androidTest/java/org/xmtp/android/library/ClientTest.kt @@ -419,8 +419,8 @@ class ClientTest { val fixtures = fixtures() val alix2Wallet = PrivateKeyBuilder() val alix3Wallet = PrivateKeyBuilder() - runBlocking { fixtures.alixClient.addAccount(fixtures.alixAccount, alix2Wallet) } - runBlocking { fixtures.alixClient.addAccount(fixtures.alixAccount, alix3Wallet) } + runBlocking { fixtures.alixClient.addAccount(alix2Wallet) } + runBlocking { fixtures.alixClient.addAccount(alix3Wallet) } val state = runBlocking { fixtures.alixClient.inboxState(true) } assertEquals(state.installations.size, 1) @@ -441,8 +441,8 @@ class ClientTest { val fixtures = fixtures() val alix2Wallet = PrivateKeyBuilder() val alix3Wallet = PrivateKeyBuilder() - runBlocking { fixtures.alixClient.addAccount(fixtures.alixAccount, alix2Wallet) } - runBlocking { fixtures.alixClient.addAccount(fixtures.alixAccount, alix3Wallet) } + runBlocking { fixtures.alixClient.addAccount(alix2Wallet) } + runBlocking { fixtures.alixClient.addAccount(alix3Wallet) } var state = runBlocking { fixtures.alixClient.inboxState(true) } assertEquals(state.addresses.size, 3) diff --git a/library/src/androidTest/java/org/xmtp/android/library/SmartContractWalletTest.kt b/library/src/androidTest/java/org/xmtp/android/library/SmartContractWalletTest.kt index 2db2485ca..648d0d31c 100644 --- a/library/src/androidTest/java/org/xmtp/android/library/SmartContractWalletTest.kt +++ b/library/src/androidTest/java/org/xmtp/android/library/SmartContractWalletTest.kt @@ -92,8 +92,8 @@ class SmartContractWalletTest { val davonEOA = PrivateKeyBuilder() val davonSCW2 = FakeSCWWallet.generate(ANVIL_TEST_PRIVATE_KEY_3) - runBlocking { davonSCWClient.addAccount(davonSCW, davonEOA) } - runBlocking { davonSCWClient.addAccount(davonSCW, davonSCW2) } + runBlocking { davonSCWClient.addAccount(davonEOA) } + runBlocking { davonSCWClient.addAccount(davonSCW2) } var state = runBlocking { davonSCWClient.inboxState(true) } assertEquals(state.installations.size, 1) diff --git a/library/src/main/java/org/xmtp/android/library/Client.kt b/library/src/main/java/org/xmtp/android/library/Client.kt index 087b76d95..f426a5b5f 100644 --- a/library/src/main/java/org/xmtp/android/library/Client.kt +++ b/library/src/main/java/org/xmtp/android/library/Client.kt @@ -198,10 +198,9 @@ class Client() { ffiClient.applySignatureRequest(signatureRequest) } - suspend fun addAccount(recoverAccount: SigningKey, newAccount: SigningKey) { + suspend fun addAccount(newAccount: SigningKey) { val signatureRequest = - ffiClient.addWallet(address.lowercase(), newAccount.address.lowercase()) - handleSignature(signatureRequest, recoverAccount) + ffiClient.addWallet(newAccount.address.lowercase()) handleSignature(signatureRequest, newAccount) ffiClient.applySignatureRequest(signatureRequest) } diff --git a/library/src/main/jniLibs/arm64-v8a/libuniffi_xmtpv3.so b/library/src/main/jniLibs/arm64-v8a/libuniffi_xmtpv3.so index 6297ead10..1573171d2 100644 Binary files a/library/src/main/jniLibs/arm64-v8a/libuniffi_xmtpv3.so and b/library/src/main/jniLibs/arm64-v8a/libuniffi_xmtpv3.so differ diff --git a/library/src/main/jniLibs/armeabi-v7a/libuniffi_xmtpv3.so b/library/src/main/jniLibs/armeabi-v7a/libuniffi_xmtpv3.so index d69fd01f4..9429f2fea 100644 Binary files a/library/src/main/jniLibs/armeabi-v7a/libuniffi_xmtpv3.so and b/library/src/main/jniLibs/armeabi-v7a/libuniffi_xmtpv3.so differ diff --git a/library/src/main/jniLibs/x86/libuniffi_xmtpv3.so b/library/src/main/jniLibs/x86/libuniffi_xmtpv3.so index 363585581..d1fbd70e8 100644 Binary files a/library/src/main/jniLibs/x86/libuniffi_xmtpv3.so and b/library/src/main/jniLibs/x86/libuniffi_xmtpv3.so differ diff --git a/library/src/main/jniLibs/x86_64/libuniffi_xmtpv3.so b/library/src/main/jniLibs/x86_64/libuniffi_xmtpv3.so index 8ac54101c..47a729266 100644 Binary files a/library/src/main/jniLibs/x86_64/libuniffi_xmtpv3.so and b/library/src/main/jniLibs/x86_64/libuniffi_xmtpv3.so differ