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

fix: signer typescript issues #158

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

VGabriel45
Copy link
Collaborator

@VGabriel45 VGabriel45 commented Dec 27, 2024

This PR fixes the typescript issues related to other unknown signer types.
This PR specifically fixes the issues mentioned in this ticket: https://linear.app/biconomy-20/issue/BIC-104/integration-issue-privy-embedded-wallet-with-biconomy-nexus-sdk


PR-Codex overview

This PR focuses on refactoring the handling of ethers.Wallet and related types in the codebase. It replaces the custom EthersWallet type with a more generic ValidSigner type, streamlining the code and enhancing type safety.

Detailed summary

  • Removed custom type EthersWallet and replaced it with ValidSigner.
  • Updated tests to reflect the removal of EthersWallet.
  • Adjusted function signatures in toSigner to accept ValidSigner.
  • Added support for JsonRpcSigner in tests.
  • Cleaned up unnecessary type imports and code comments.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@VGabriel45 VGabriel45 requested a review from joepegler December 27, 2024 11:19
Copy link

github-actions bot commented Dec 27, 2024

size-limit report 📦

Path Size
core (esm) 14.93 KB (+0.29% 🔺)
core (cjs) 20.99 KB (+0.11% 🔺)
bundler (tree-shaking) 544 B (0%)
paymaster (tree-shaking) 543 B (0%)

@VGabriel45 VGabriel45 marked this pull request as draft December 27, 2024 11:29
@VGabriel45 VGabriel45 marked this pull request as ready for review December 27, 2024 15:11
@VGabriel45 VGabriel45 requested review from TurboFolkBlackMetal and removed request for joepegler December 27, 2024 15:12
@joepegler joepegler force-pushed the develop branch 2 times, most recently from a93c10a to 8f76a15 Compare January 8, 2025 09:51
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.

1 participant