feat: update getSignatureStatus api

This commit is contained in:
Justin Starry
2020-03-26 21:37:45 +08:00
committed by Michael Vines
parent ce4820a85a
commit a571e3dc65
7 changed files with 128 additions and 67 deletions

View File

@@ -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;
}

View File

@@ -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;
}