fix: incorrect error message for getFeeForMessage (#28529)
This commit is contained in:
parent
7be8af5f40
commit
49daa596c0
|
@ -3831,7 +3831,7 @@ export class Connection {
|
||||||
|
|
||||||
const res = create(unsafeRes, jsonRpcResultAndContext(nullable(number())));
|
const res = create(unsafeRes, jsonRpcResultAndContext(nullable(number())));
|
||||||
if ('error' in res) {
|
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) {
|
if (res.result === null) {
|
||||||
throw new Error('invalid blockhash');
|
throw new Error('invalid blockhash');
|
||||||
|
|
Loading…
Reference in New Issue