Skip to content

Commit

Permalink
fix: upgrading to token 2022
Browse files Browse the repository at this point in the history
  • Loading branch information
wei3erHase committed Oct 8, 2024
1 parent fe416de commit d313474
Show file tree
Hide file tree
Showing 4 changed files with 201 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ jobs:

- name: Run tests
working-directory: program
run: cargo test --features test-bpf
run: RUSTFLAGS="-A deprecated" cargo test --features test-bpf
228 changes: 198 additions & 30 deletions program/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions program/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ num-derive = "0.3"
arrayref = "0.3.6"
solana-program = "1.5.6"
spl-token = { version = "3.0.1", features = ["no-entrypoint"] }
spl-token-2022 = { version = "3.0.4", features = ["no-entrypoint"] }
spl-associated-token-account = { version = "1.0.2", features = ["no-entrypoint"] }
arbitrary = { version = "0.4", features = ["derive"], optional = true }
honggfuzz = { version = "0.5", optional = true }
Expand Down
2 changes: 1 addition & 1 deletion program/src/processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use solana_program::{
};

use num_traits::FromPrimitive;
use spl_token::{instruction::transfer, state::Account};
use spl_token_2022::{instruction::transfer, state::Account};

use crate::{
error::VestingError,
Expand Down

0 comments on commit d313474

Please sign in to comment.