feat: add getSlotLeader()/getClusterNodes()
This commit is contained in:
@@ -41,5 +41,7 @@ export async function sendAndConfirmRawTransaction(
|
||||
return signature;
|
||||
}
|
||||
|
||||
throw new Error(`Raw transaction ${signature} failed (${JSON.stringify(status)})`);
|
||||
throw new Error(
|
||||
`Raw transaction ${signature} failed (${JSON.stringify(status)})`,
|
||||
);
|
||||
}
|
||||
|
@@ -52,7 +52,9 @@ export async function sendAndConfirmTransaction(
|
||||
}
|
||||
|
||||
if (status && status.Err && !('AccountInUse' in status.Err)) {
|
||||
throw new Error(`Transaction ${signature} failed (${JSON.stringify(status)})`);
|
||||
throw new Error(
|
||||
`Transaction ${signature} failed (${JSON.stringify(status)})`,
|
||||
);
|
||||
}
|
||||
|
||||
// Retry in 0..100ms to try to avoid another AccountInUse collision
|
||||
|
Reference in New Issue
Block a user