Skip to content

Commit

Permalink
fix: UnbondRequestsIndexes.user index had wrong PK defined.
Browse files Browse the repository at this point in the history
h/t @0xPhillip - fmt
  • Loading branch information
PFC-developer committed Jul 15, 2024
1 parent abb5487 commit f40186f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/hub-tf/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ pub fn unbond_requests_user_idx(_pk: &[u8], d: &UnbondRequest) -> String {
d.user.to_string()
}

pub fn unbond_requests<'a>(
) -> IndexedMap<'a, (u64, &'a str), UnbondRequest, UnbondRequestsIndexes<'a>> {
pub fn unbond_requests<'a>()
-> IndexedMap<'a, (u64, &'a str), UnbondRequest, UnbondRequestsIndexes<'a>> {
IndexedMap::new(
UNBOND_KEY_V101,
UnbondRequestsIndexes {
Expand Down

0 comments on commit f40186f

Please sign in to comment.