feat: return null when account info not found
This commit is contained in:
		
				
					committed by
					
						
						Michael Vines
					
				
			
			
				
	
			
			
			
						parent
						
							0fcb1f6f56
						
					
				
				
					commit
					7989c10b7a
				
			@@ -129,6 +129,10 @@ test('create and query nonce account', async () => {
 | 
			
		||||
    nonceAccount.publicKey,
 | 
			
		||||
    'recent',
 | 
			
		||||
  );
 | 
			
		||||
  if (nonceAccountData === null) {
 | 
			
		||||
    expect(nonceAccountData).not.toBeNull();
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  expect(nonceAccountData.authorizedPubkey).toEqual(from.publicKey);
 | 
			
		||||
  expect(bs58.decode(nonceAccountData.nonce).length).toBeGreaterThan(30);
 | 
			
		||||
});
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user