-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
ts: Export wallet type #1122
ts: Export wallet type #1122
Conversation
Wasn't that a deliberate change? I've refactored to using Publickey/Signer |
If you want to do something like Mint an NFT, you need to create a The |
Also @armaniferrante I would consider removing the Prettier test requirement. It's the kind of requirement that seems nice in theory but in practice just leads to a lot of test failures and annoyance. For example, right now I've run |
default as Provider, | ||
getProvider, | ||
setProvider, | ||
Wallet, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't this conflict with the conditional export down below? Wallet is an interface while Node wallet is a class, but they're exported via the same namespace.
Thanks for the feedback. If this continues to be a problem we can remove it, though this is the first instance of this occuring. Otherwise, I prefer to keep it to help keep cosmetic comments in PRs to a minimum. Can you give me write access to the branch so that I can push the lint changes? |
@armaniferrante added you to our repo :) Yea it's weird. I'm not sure why prettier isn't working for me... Re the |
Interestingly, @solana/wallet-adapter-react exports a useAnchorWallet hook, but its type is incompatible with anchor Provider class. |
We should probably fix that! Want to create an issue or PR on WalletAdapter? |
@jordansexton yeah, will open an issue there 👍 |
This allows us to use the
Wallet
type since we are now exporting it fromindex.ts
.