wallet-adapter
wallet-adapter copied to clipboard
chore: constrain the `connection` input of `sendTransaction` to the minimum interface actually required
The sendTransaction() method takes in a Connection from @solana/web3.js but actually requires very little of it; just commitment, sendRawTransaction(), and getLatestBlockhash().
In this PR we constrain the interface to exactly that and no more. This will make it easier to supply non @solana/web3.js implementations at that callsite, so long as they can fulfil the same contract.
Rebased. I still think this is worth doing. Are you opposed to this in any way @jordaaash?