fix: incorrect error message for getFeeForMessage (#28529)

This commit is contained in:
Justin Starry 2022-10-21 09:50:10 +08:00 committed by GitHub
parent 7be8af5f40
commit 49daa596c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -3831,7 +3831,7 @@ export class Connection {
const res = create(unsafeRes, jsonRpcResultAndContext(nullable(number())));
if ('error' in res) {
throw new SolanaJSONRPCError(res.error, 'failed to get slot');
throw new SolanaJSONRPCError(res.error, 'failed to get fee for message');
}
if (res.result === null) {
throw new Error('invalid blockhash');