anchor
anchor copied to clipboard
Fix not being able to import Wallet interface
This exports Wallet
interface, NodeWallet
class. Previously the Wallet interface was inaccessible
Also gave workspace
a type Record<string, Program>
This is a breaking change. Should I fix tests?
Please run prettier
yarn run v1.22.18
$ prettier src/** tests/** --check
Checking formatting...
[warn] src/index.ts
[warn] Code style issues found in the above file(s). Forgot to run Prettier?
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Process completed with exit code 1.
Not sure whether this PR is still needed or not?
I think so but it's nbd. Anchor exports Wallet which is just a clone of NodeWallet, kinda silly
Feel free to close though if you don't want to clean up and merge this
Recently when doing the VersionedTransaction update I did notice that the Wallet interface doesn't show up in anchor's ts docs. But in general, I don't really understand enough about what's happening in this PR to make a judgement call or clean it up
Lets pretend this never happened ;)