feat: update getSignatureStatus api
This commit is contained in:
committed by
Michael Vines
parent
ce4820a85a
commit
a571e3dc65
@@ -21,7 +21,7 @@ export async function sendAndConfirmRawTransaction(
|
||||
let status = null;
|
||||
let statusRetries = 6;
|
||||
for (;;) {
|
||||
status = await connection.getSignatureStatus(signature, commitment);
|
||||
status = (await connection.getSignatureStatus(signature, commitment)).value;
|
||||
if (status) {
|
||||
break;
|
||||
}
|
||||
|
@@ -53,7 +53,8 @@ async function _sendAndConfirmTransaction(
|
||||
let status = null;
|
||||
let statusRetries = 6;
|
||||
for (;;) {
|
||||
status = await connection.getSignatureStatus(signature, commitment);
|
||||
status = (await connection.getSignatureStatus(signature, commitment))
|
||||
.value;
|
||||
if (status) {
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user