Skip to content

Commit 2861c2b

Browse files
committed
Add priority fee parameter
1 parent 339923b commit 2861c2b

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/actions/write-program-buffer/action.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ inputs:
1616
buffer-authority-address:
1717
description: "The buffer authority address. Could be the local address or the squads authority"
1818
required: true
19+
priority-fee:
20+
description: "Priority fee in microlamports"
21+
required: false
22+
default: "100000"
1923

2024
outputs:
2125
buffer:
@@ -99,7 +103,7 @@ runs:
99103
--url ${{ inputs.rpc-url }} \
100104
--keypair ./deploy-keypair.json \
101105
--max-sign-attempts 100 \
102-
--with-compute-unit-price 100000 \
106+
--with-compute-unit-price ${{ inputs.priority-fee }} \
103107
--use-rpc \
104108
2>&1)
105109

.github/workflows/reusable-build.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ on:
3232
required: false
3333
type: boolean
3434
default: false
35+
priority-fee:
36+
description: "Priority fee in microlamports"
37+
required: false
38+
type: string
39+
default: "100000"
3540
secrets:
3641
DEVNET_SOLANA_DEPLOY_URL:
3742
MAINNET_SOLANA_DEPLOY_URL:
@@ -220,6 +225,7 @@ jobs:
220225
rpc-url: ${{ env.DEPLOY_URL }}
221226
keypair: ${{ env.DEPLOYER_KEYPAIR }}
222227
buffer-authority-address: ${{ inputs.use-squads && env.MULTISIG_VAULT || env.DEPLOYER_ADDRESS }}
228+
priority-fee: ${{ inputs.priority-fee }}
223229

224230
- name: Write IDL Buffer
225231
uses: Woody4618/github-action/.github/actions/write-idl-buffer@main

0 commit comments

Comments
 (0)