Skip to content

Commit

Permalink
Fix update assets script by updating the type id of Bifrost Polkadot …
Browse files Browse the repository at this point in the history
…assets in rpc.getMetadata()
  • Loading branch information
michaeldev5 committed Sep 17, 2023
1 parent 2c5c020 commit cac4b3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/updateAssets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const fetchNativeAssets = async (api: ApiPromise): Promise<TNativeAssetDetails[]

const fetchBifrostNativeAssets = async (api: ApiPromise): Promise<TNativeAssetDetails[]> => {
const res = await api.rpc.state.getMetadata()
const TYPE_ID = 127
const TYPE_ID = 131
const DEFAULT_DECIMALS = -1
// Decimals for Bifrost Polkadot will be set to -1 and later derived from other assets
return res.asLatest.lookup.types.at(TYPE_ID)!.type.def.asVariant.variants.map(k => ({
Expand Down

0 comments on commit cac4b3a

Please sign in to comment.