-
Notifications
You must be signed in to change notification settings - Fork 114
Open
Description
chopsticks/packages/core/src/utils/index.ts
Lines 48 to 55 in 92d0ab8
| export const getParaId = async (chain: Blockchain) => { | |
| const meta = await chain.head.meta | |
| const id = await chain.head.read('u32', meta.query.parachainInfo.parachainId) | |
| if (!id) { | |
| throw new Error('Cannot find parachain id') | |
| } | |
| return id | |
| } |
this code should fallback to GetParachainInfo runtime API if storage did not exists
Metadata
Metadata
Assignees
Labels
No labels