Closed exzachlyvv closed 2 years ago
Right now, if you call the getAccountInfo({pubKey}) method where the {pubKey} does not exist, it will fail with error message:
getAccountInfo({pubKey})
TypeError: Tighten\SolanaPhpSdk\Solana::getAccountInfo(): Return value must be of type array, null returned
I propose that we check for this, and throw a new AccountNotFoundException.
Right now, if you call the
getAccountInfo({pubKey})
method where the {pubKey} does not exist, it will fail with error message:I propose that we check for this, and throw a new AccountNotFoundException.