Skip to content

Commit

Permalink
Merge pull request #24 from Squads-Protocol/execution-ix-sig-logging
Browse files Browse the repository at this point in the history
added signature logging for sequential execution
  • Loading branch information
ogmedia authored Jun 12, 2024
2 parents bb7cbc2 + 82463d9 commit 21c5778
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4,047 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ bin/
.idea/

transfer.json
yarn-error.log
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sqds/cli",
"version": "2.3.18",
"version": "2.3.19",
"description": "",
"main": "bin/index.js",
"scripts": {
Expand Down
2 changes: 2 additions & 0 deletions src/lib/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@ class Menu{
executeIxTx.add(additionalComputeBudgetInstruction,ix);
const signed = await this.wallet.signTransaction(executeIxTx);
const txid = await this.api.connection.sendRawTransaction(signed.serialize(), {skipPreflight: true});
console.log(`ix ${ixIndex} signature: ${txid}`);
await this.api.connection.confirmTransaction(txid, "confirmed");
await this.api.squads.getTransaction(tx.publicKey)
}catch(e){
Expand All @@ -384,6 +385,7 @@ class Menu{
executeIxTx.add(additionalComputeBudgetInstruction,ix);
const signed = await this.wallet.signTransaction(executeIxTx);
const txid = await this.api.connection.sendRawTransaction(signed.serialize(), {skipPreflight: true});
console.log(`ix ${ixIndex} retry signature: ${txid}`);
await this.api.connection.confirmTransaction(txid, "confirmed");
}
await this.api.squads.getTransaction(tx.publicKey);
Expand Down
Loading

0 comments on commit 21c5778

Please sign in to comment.