wallet-adapter icon indicating copy to clipboard operation
wallet-adapter copied to clipboard

chore: constrain the `connection` input of `sendTransaction` to the minimum interface actually required

Open steveluscher opened this issue 1 year ago • 1 comments

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.

steveluscher avatar Nov 29 '23 01:11 steveluscher

Rebased. I still think this is worth doing. Are you opposed to this in any way @jordaaash?

steveluscher avatar May 10 '24 22:05 steveluscher