feat: update commitment variants (#15253)
* feat: update commitment variants * fix: make pretty * fix: deprecate, but leave in commitment types
This commit is contained in:
@@ -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',
|
||||
},
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user