Skip to content

Commit

Permalink
fix: updated the logic of nonces to be based on chain id instead of h…
Browse files Browse the repository at this point in the history
…andler id
  • Loading branch information
ivan-cholakov committed Sep 19, 2024
1 parent 7d658b5 commit 45f7c87
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pallets/avn-anchor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -542,4 +542,4 @@ pub fn encode_signed_submit_checkpoint_params<T: Config>(

pub fn get_chain_data_for_handler<T: Config>(handler: &T::AccountId) -> Option<ChainDataStruct> {
Pallet::<T>::chain_handlers(handler).and_then(|chain_id| Pallet::<T>::chain_data(chain_id))
}
}
2 changes: 1 addition & 1 deletion pallets/avn-anchor/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,4 +176,4 @@ pub fn inner_call_failed_event_emitted(call_dispatch_error: DispatchError) -> bo
}) => dispatch_error == call_dispatch_error,
_ => false,
})
}
}
2 changes: 1 addition & 1 deletion pallets/avn-anchor/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -623,4 +623,4 @@ fn checkpoint_id_overflow_fails() {
Error::<TestRuntime>::NoAvailableCheckpointId
);
});
}
}

0 comments on commit 45f7c87

Please sign in to comment.