Skip to content

Commit

Permalink
chore: pull chore/workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
wei3erHase committed Sep 19, 2024
2 parents f5e0bcf + d1cac82 commit dad1b02
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,6 @@ jobs:
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1

- name: List
working-directory: program
run: cargo --list

- name: Test help
working-directory: program
run: cargo test --help

- name: Run tests
working-directory: program
run: cargo test --verbose
run: cargo test --features test-bpf
4 changes: 2 additions & 2 deletions program/src/instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ impl Arbitrary for VestingInstruction {
1 => {
let schedules: [Schedule; 10] = u.arbitrary()?;
let key_bytes: [u8; 32] = u.arbitrary()?;
let mint_address: Pubkey = Pubkey::new(&key_bytes);
let mint_address: Pubkey = Pubkey::new_from_array(key_bytes);
let key_bytes: [u8; 32] = u.arbitrary()?;
let destination_token_address: Pubkey = Pubkey::new(&key_bytes);
let destination_token_address: Pubkey = Pubkey::new_from_array(key_bytes);
return Ok(Self::Create {
seeds,
mint_address,
Expand Down
4 changes: 1 addition & 3 deletions program/src/state.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
use std::convert::TryFrom;

use solana_program::{
program_error::ProgramError,
program_pack::{IsInitialized, Pack, Sealed},
pubkey::Pubkey,
};

use std::convert::TryInto;
use std::convert::{TryFrom, TryInto};
#[derive(Debug, PartialEq)]
pub struct VestingSchedule {
pub release_time: u64,
Expand Down

0 comments on commit dad1b02

Please sign in to comment.