Skip to content
Commit 8781c7ae 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 c1b13946
Pipeline #497245 waiting for manual action with stages
in 47 minutes and 1 second
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