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

Turn fake wallet adapter into a burner wallet adapter #569

Merged
merged 9 commits into from
Sep 20, 2022
Merged
Prev Previous commit
Next Next commit
inherit sendTransaction
  • Loading branch information
jordaaash committed Sep 20, 2022
commit 8e063ba70f9bbe19b065c8a3f7a82fdfae7d31ed
10 changes: 0 additions & 10 deletions packages/wallets/burner/src/adapter.ts
Original file line number Diff line number Diff line change
@@ -54,16 +54,6 @@ export class InsecureBurnerWalletAdapter extends BaseSignerWalletAdapter {
this.emit('disconnect');
}

async sendTransaction(
transaction: Transaction | VersionedTransaction,
connection: Connection,
options: SendTransactionOptions = {}
): Promise<TransactionSignature> {
transaction = await this.signTransaction(transaction);
const rawTransaction = transaction.serialize();
return connection.sendRawTransaction(rawTransaction, options);
}

async signTransaction<T extends Transaction | VersionedTransaction>(transaction: T): Promise<T> {
if (this._keypair === null) throw new WalletNotConnectedError();