From 2c8076b77c82e7bfd076da097a3cb687c583e22d Mon Sep 17 00:00:00 2001 From: Noah Prince Date: Fri, 17 Jan 2025 11:57:35 -0800 Subject: [PATCH] Fix builds --- .github/actions/build-anchor/action.yaml | 2 +- tuktuk-cli/src/cmd/cron.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/actions/build-anchor/action.yaml b/.github/actions/build-anchor/action.yaml index 1a0585b..90b5456 100644 --- a/.github/actions/build-anchor/action.yaml +++ b/.github/actions/build-anchor/action.yaml @@ -35,7 +35,7 @@ runs: with: path: | ./solana-programs/target/ - key: build-${{ runner.os }}-${{env.ANCHOR_VERSION}}-${{env.ANCHOR_SHA}}-v0002-${{ inputs.devnet }}-${{ inputs.testing }}-${{ hashFiles('./programs/**/**') }}-${{ inputs.program }} + key: build-${{ runner.os }}-${{env.ANCHOR_VERSION}}-${{env.ANCHOR_SHA}}-v0003-${{ inputs.devnet }}-${{ inputs.testing }}-${{ hashFiles('./solana-programs/programs/**/**') }}-${{ inputs.program }} - run: ${{ inputs.testing == 'true' && 'TESTING=true' || '' }} ~/.cargo/bin/anchor build ${{ (inputs.program != '' && '-p') || '' }} ${{ inputs.program || '' }} ${{ inputs.devnet == 'true' && '-- --features devnet' || '' }} if: steps.cache-anchor-build.outputs.cache-hit != 'true' shell: bash diff --git a/tuktuk-cli/src/cmd/cron.rs b/tuktuk-cli/src/cmd/cron.rs index 5f5bf95..52e7c9e 100644 --- a/tuktuk-cli/src/cmd/cron.rs +++ b/tuktuk-cli/src/cmd/cron.rs @@ -117,7 +117,7 @@ impl CronCmd { async fn requeue_cron_job_ix(client: &CliClient, cron_job_key: &Pubkey) -> Result { let cron_job: CronJobV0 = client .rpc_client - .anchor_account(&cron_job_key) + .anchor_account(cron_job_key) .await? .ok_or_else(|| anyhow::anyhow!("Cron job not found: {}", cron_job_key))?; let task_queue: TaskQueueV0 = client @@ -150,10 +150,10 @@ impl CronCmd { cron_job: *cron_job_key, task_queue: cron_job.task_queue, task_return_account_1: tuktuk::cron::task_return_account_1_key( - &cron_job_key, + cron_job_key, ), task_return_account_2: tuktuk::cron::task_return_account_1_key( - &cron_job_key, + cron_job_key, ), system_program: solana_sdk::system_program::ID, }