Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smart contract wallet support #304

Merged
merged 33 commits into from
Oct 22, 2024
Merged

Conversation

nplasterer
Copy link
Contributor

@nplasterer nplasterer commented Oct 3, 2024

This adds support for smart contract wallet accounts.

@nplasterer nplasterer self-assigned this Oct 3, 2024
@nplasterer nplasterer marked this pull request as ready for review October 18, 2024 04:14
@nplasterer nplasterer requested review from a team as code owners October 18, 2024 04:14

val clientOptions = options ?: ClientOptions(enableV3 = true)
val accountAddress =
if (account.isSmartContractWallet) "eip155:${account.chainId}:${account.address.lowercase()}" else account.address.lowercase()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was the fix for the Unknown Signer issue. We need to create the client with the CIAP address.

library/src/main/java/org/xmtp/android/library/Client.kt Outdated Show resolved Hide resolved
Branch: main
Date: 2024-10-08 19:58:58 +0000
Version: 6937f233
Branch: np/fix-ffi-bindings
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The WASM branch broke the FFI bindings so had to roll back to the commit before the wasm branch.

@nplasterer
Copy link
Contributor Author

Feel really good about this. I think it's ready for a final review.

Screenshot 2024-10-19 at 6 46 00 AM

@nplasterer nplasterer merged commit 492c797 into main Oct 22, 2024
2 of 3 checks passed
@nplasterer nplasterer deleted the np/smart-contract-wallet-support branch October 22, 2024 05:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants