Skip to content
Commit b539e903 authored by Oliver Tale-Yazdi's avatar Oliver Tale-Yazdi Committed by github-actions[bot]
Browse files

pallet-migrations: fix index access for singluar migrations (#5695)



Discovered a bug in the migrations pallet while debugging
https://github.com/paritytech/try-runtime-cli/pull/90.
It only occurs when a single MBM is configured - hence it did not happen
when Ajuna Network tried it...

Changes:
- Check len of the tuple before accessing its nth_id
- Make nth_id return `None` on unary tuples and n>0

---------

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
Co-authored-by: default avatarggwpez <[email protected]>
(cherry picked from commit 01364633)
parent 38945d04
Pipeline #497248 waiting for manual action with stages
in 46 minutes and 23 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment