diff --git a/.github/actions/buffer-deploy/action.yaml b/.github/actions/buffer-deploy/action.yaml index 999802610..9bfbb116e 100644 --- a/.github/actions/buffer-deploy/action.yaml +++ b/.github/actions/buffer-deploy/action.yaml @@ -56,7 +56,7 @@ runs: timeout_minutes: 30 max_attempts: 10 shell: bash - command: solana program write-buffer --use-rpc --buffer ./keyp -k ./deploy-keypair.json ./target/deploy/$PROGRAM.so -u $NETWORK > ./buffer.out + command: solana program write-buffer --with-compute-unit-price 2 --use-rpc --buffer ./keyp -k ./deploy-keypair.json ./target/deploy/$PROGRAM.so -u $NETWORK > ./buffer.out env: NETWORK: ${{ inputs.network }} PROGRAM: ${{ inputs.program }} diff --git a/migration-docker/deploy-with-retries.sh b/migration-docker/deploy-with-retries.sh index 2d66d4b8c..5535478d6 100755 --- a/migration-docker/deploy-with-retries.sh +++ b/migration-docker/deploy-with-retries.sh @@ -14,7 +14,7 @@ CURRENT_RETRY=0 # Deploy the program with the buffer signer keypair while [[ $CURRENT_RETRY -lt $MAX_RETRIES ]]; do echo "Deploying program (retry $((CURRENT_RETRY+1)))..." - solana program deploy $PROGRAM_SOURCE_FILE --buffer buffer.json -u $SOLANA_URL --program-id $KEYPAIR + solana program deploy $PROGRAM_SOURCE_FILE --with-compute-unit-price 2 --buffer buffer.json -u $SOLANA_URL --program-id $KEYPAIR # Check if the deploy command succeeded if [[ $? -eq 0 ]]; then