fix: feedback
This commit is contained in:
@ -879,8 +879,7 @@ export class Connection {
|
|||||||
.then(x => x.value)
|
.then(x => x.value)
|
||||||
.catch(e => {
|
.catch(e => {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
'failed to get balance of account ' + publicKey.toBase58() + ': ' +
|
'failed to get balance of account ' + publicKey.toBase58() + ': ' + e,
|
||||||
e,
|
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -897,7 +896,7 @@ export class Connection {
|
|||||||
const res = GetAccountInfoAndContextRpcResult(unsafeRes);
|
const res = GetAccountInfoAndContextRpcResult(unsafeRes);
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
'failed info about account ' +
|
'failed to get info about account ' +
|
||||||
publicKey.toBase58() +
|
publicKey.toBase58() +
|
||||||
': ' +
|
': ' +
|
||||||
res.error.message,
|
res.error.message,
|
||||||
@ -935,7 +934,7 @@ export class Connection {
|
|||||||
.then(x => x.value)
|
.then(x => x.value)
|
||||||
.catch(e => {
|
.catch(e => {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
'failed info about account ' + publicKey.toBase58() + ': ' + e,
|
'failed to get info about account ' + publicKey.toBase58() + ': ' + e,
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -954,7 +953,7 @@ export class Connection {
|
|||||||
const res = GetProgramAccountsRpcResult(unsafeRes);
|
const res = GetProgramAccountsRpcResult(unsafeRes);
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
'failed info about account ' +
|
'failed to get accounts owned by program ' +
|
||||||
programId.toBase58() +
|
programId.toBase58() +
|
||||||
': ' +
|
': ' +
|
||||||
res.error.message,
|
res.error.message,
|
||||||
|
Reference in New Issue
Block a user