fix: Repair examples bug
This commit is contained in:
parent
4cf234618e
commit
f6494f6675
|
@ -51,9 +51,10 @@ function confirmTransaction(signature) {
|
|||
console.log('Confirming transaction:', signature);
|
||||
return connection.getSignatureStatus(signature).then(confirmation => {
|
||||
if (confirmation && 'Ok' in confirmation) {
|
||||
console.log('Transaction confirmed');
|
||||
} else {
|
||||
throw new Error(`Transaction was not confirmed (${confirmation})`);
|
||||
}
|
||||
console.log('Transaction confirmed');
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue