File tree Expand file tree Collapse file tree 4 files changed +329
-10
lines changed Expand file tree Collapse file tree 4 files changed +329
-10
lines changed Original file line number Diff line number Diff line change @@ -41,18 +41,17 @@ runs:
4141 ~/.cargo/bin/anchor
4242 key : solana-cli-${{ inputs.solana-version }}
4343
44- - name : Install Anchor CLI
44+ - name : Install Solana CLI
4545 run : |
4646 mkdir -p ~/.local/share/solana
47- curl --proto '=https' --tlsv1.2 - sSfL https://solana-install.solana.workers.dev | bash
47+ sh -c "$(curl - sSfL https://release.anza.xyz/${{ inputs.solana-version }}/install)"
4848 echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
4949 shell : bash
5050
5151 - name : Install Anchor CLI
5252 shell : bash
53- if : steps.cache-anchor-cli.outputs.cache-hit != 'true' && inputs.anchor_version != ''
5453 run : |
55- cargo install --git https://github.com/coral-xyz/ anchor --tag "v ${{ inputs.anchor_version }}" anchor-cli --force
54+ cargo install anchor-cli@ ${{ inputs.anchor-version }} --locked --force
5655 anchor --version
5756
5857 - name : Cache node_modules
@@ -68,12 +67,10 @@ runs:
6867 - name : Build test programs
6968 run : |
7069 make build-test-earn-programs
71- make build-test-swap-program
7270 shell : bash
7371
7472 - name : Build programs
7573 run : |
7674 anchor build -p earn
77- anchor build -p ext_earn
7875 anchor build -p portal --no-idl
7976 shell : bash
Original file line number Diff line number Diff line change @@ -55,7 +55,10 @@ pub struct Initialize<'info> {
5555 ) ]
5656 pub old_global_account : Account < ' info , OldGlobal > ,
5757
58- #[ account( mint:: token_program = token_program) ]
58+ #[ account(
59+ mut ,
60+ mint:: token_program = token_program
61+ ) ]
5962 pub m_mint : InterfaceAccount < ' info , Mint > ,
6063
6164 /// CHECK: This account is validated by its seeds
Original file line number Diff line number Diff line change @@ -43,7 +43,9 @@ pub mod earn {
4343 Initialize :: handler ( ctx, current_index)
4444 }
4545
46- // TODO add admin instructions for updating global values
46+ pub fn recover_m ( ctx : Context < RecoverM > , amount : Option < u64 > ) -> Result < ( ) > {
47+ RecoverM :: handler ( ctx, amount)
48+ }
4749
4850 // Portal instrutions
4951
You can’t perform that action at this time.
0 commit comments