Migrate node authorization pallet to FRAME v2#8337
Conversation
|
| ensure!(node.0.len() < T::MaxPeerIdLength::get() as usize, Error::<T>::PeerIdTooLong); | ||
| ensure!(Owners::<T>::contains_key(&node), Error::<T>::NotClaimed); | ||
| ensure!(Owners::<T>::get(&node) == sender, Error::<T>::NotOwner); | ||
| let pre_owner = Owners::<T>::get(&node).ok_or(Error::<T>::NotClaimed)?; |
There was a problem hiding this comment.
I would have prefered to have a PR which only does the migration without any other changes, it would make it easier to review.
ascjones
left a comment
There was a problem hiding this comment.
LGTM. Can you confirm the metadata pre and post migration is the same?
|
@ascjones Here is the diff: https://www.diffchecker.com/spxo73UK |
Related to #7882 #8293