Skip to content

Commit 94e97e6

Browse files
authored
More log and fix OFFSET bug (#538)
1 parent bb4a59f commit 94e97e6

File tree

2 files changed

+2
-1
lines changed
  • governance/xc-admin/packages

2 files changed

+2
-1
lines changed

governance/xc-admin/packages/crank-executor/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ async function run() {
6363

6464
const proposals = await getProposals(squad, VAULT, undefined, "executeReady");
6565
for (const proposal of proposals) {
66+
console.log("Trying to execute: ", proposal.publicKey.toBase58());
6667
// If we have previously cancelled because the proposal was failing, don't attempt
6768
if (proposal.cancelled.length == 0) {
6869
for (

governance/xc-admin/packages/crank-pythnet-relayer/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const EXECUTOR_KEY_SEED = "EXECUTOR_KEY";
4242
const CLUSTER: PythCluster = envOrErr("CLUSTER") as PythCluster;
4343
const COMMITMENT: Commitment =
4444
(process.env.COMMITMENT as Commitment) ?? "confirmed";
45-
const OFFSET: number = Number(process.env.OFFSET) ?? -1;
45+
const OFFSET: number = Number(process.env.OFFSET ?? "-1");
4646
const EMITTER: PublicKey = new PublicKey(envOrErr("EMITTER"));
4747
const KEYPAIR: Keypair = Keypair.fromSecretKey(
4848
Uint8Array.from(JSON.parse(fs.readFileSync(envOrErr("WALLET"), "ascii")))

0 commit comments

Comments
 (0)