feat: return null when account info not found
This commit is contained in:
		
				
					committed by
					
						
						Michael Vines
					
				
			
			
				
	
			
			
			
						parent
						
							0fcb1f6f56
						
					
				
				
					commit
					7989c10b7a
				
			
							
								
								
									
										4
									
								
								web3.js/module.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								web3.js/module.d.ts
									
									
									
									
										vendored
									
									
								
							@@ -163,11 +163,11 @@ declare module '@solana/web3.js' {
 | 
			
		||||
    getAccountInfoAndContext(
 | 
			
		||||
      publicKey: PublicKey,
 | 
			
		||||
      commitment?: Commitment,
 | 
			
		||||
    ): Promise<RpcResponseAndContext<AccountInfo>>;
 | 
			
		||||
    ): Promise<RpcResponseAndContext<AccountInfo | null>>;
 | 
			
		||||
    getAccountInfo(
 | 
			
		||||
      publicKey: PublicKey,
 | 
			
		||||
      commitment?: Commitment,
 | 
			
		||||
    ): Promise<AccountInfo>;
 | 
			
		||||
    ): Promise<AccountInfo | null>;
 | 
			
		||||
    getProgramAccounts(
 | 
			
		||||
      programId: PublicKey,
 | 
			
		||||
      commitment?: Commitment,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user