瀏覽代碼

ts: provider publicKey optional (#1867)

Armani Ferrante 3 年之前
父節點
當前提交
ee14a884f7
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      ts/src/provider.ts

+ 1 - 2
ts/src/provider.ts

@@ -9,7 +9,6 @@ import {
   Commitment,
   SendTransactionError,
   SendOptions,
-  RpcResponseAndContext,
 } from "@solana/web3.js";
 import { bs58 } from "./utils/bytes/index.js";
 import { isBrowser } from "./utils/common.js";
@@ -20,7 +19,7 @@ import {
 
 export default interface Provider {
   readonly connection: Connection;
-  readonly publicKey: PublicKey;
+  readonly publicKey?: PublicKey;
 
   send?(
     tx: Transaction,