feat: update commitment variants (#15253)

* feat: update commitment variants

* fix: make pretty

* fix: deprecate, but leave in commitment types
This commit is contained in:
Josh
2021-02-17 16:15:09 -08:00
committed by GitHub
parent 7f7370c306
commit 8c8f8f3130
12 changed files with 132 additions and 126 deletions

View File

@@ -68,7 +68,7 @@ export class Loader {
// Fetch program account info to check if it has already been created
const programInfo = await connection.getAccountInfo(
program.publicKey,
'singleGossip',
'confirmed',
);
let transaction: Transaction | null = null;
@@ -128,7 +128,7 @@ export class Loader {
transaction,
[payer, program],
{
commitment: 'singleGossip',
commitment: 'confirmed',
},
);
}
@@ -169,7 +169,7 @@ export class Loader {
});
transactions.push(
sendAndConfirmTransaction(connection, transaction, [payer, program], {
commitment: 'singleGossip',
commitment: 'confirmed',
}),
);
@@ -209,7 +209,7 @@ export class Loader {
transaction,
[payer, program],
{
commitment: 'singleGossip',
commitment: 'confirmed',
},
);
}