Skip to content

Commit

Permalink
chore: Fix merge issues
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianBor committed Mar 4, 2024
1 parent 3c6fa1a commit 6d06deb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions governance/program/src/instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1968,7 +1968,7 @@ pub fn set_token_owner_record_lock(
Instruction {
program_id: *program_id,
accounts,
data: instruction.try_to_vec().unwrap(),
data: borsh::to_vec(&instruction).unwrap(),
}
}

Expand Down Expand Up @@ -2003,7 +2003,7 @@ pub fn relinquish_token_owner_record_locks(
Instruction {
program_id: *program_id,
accounts,
data: instruction.try_to_vec().unwrap(),
data: borsh::to_vec(&instruction).unwrap(),
}
}

Expand Down Expand Up @@ -2032,6 +2032,6 @@ pub fn set_realm_config_item(
Instruction {
program_id: *program_id,
accounts,
data: instruction.try_to_vec().unwrap(),
data: borsh::to_vec(&instruction).unwrap(),
}
}
2 changes: 1 addition & 1 deletion governance/program/src/state/realm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ mod test {
reserved: Reserved110::default(),
};

let size = realm_config.try_to_vec().unwrap().len();
let size = borsh::to_vec(&realm_config).unwrap().len();

assert_eq!(realm_config.get_max_size(), Some(size));
}
Expand Down
4 changes: 2 additions & 2 deletions governance/program/src/state/token_owner_record.rs
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ mod test {
let token_owner_record = create_test_token_owner_record();

// Act
let size = token_owner_record.try_to_vec().unwrap().len();
let size = borsh::to_vec(&token_owner_record).unwrap().len();

// Assert
assert_eq!(token_owner_record.get_max_size(), Some(size));
Expand All @@ -624,7 +624,7 @@ mod test {
});

// Act
let size = token_owner_record.try_to_vec().unwrap().len();
let size = borsh::to_vec(&token_owner_record).unwrap().len();

// Assert
assert_eq!(token_owner_record.get_max_size(), Some(size));
Expand Down

0 comments on commit 6d06deb

Please sign in to comment.