darwinia-network / darwinia.js-1.0-deprecated

Javascript API and Types
Apache License 2.0
5 stars 4 forks source link

Support metadata v14 Pangolin #47

Closed hackfisher closed 2 years ago

hackfisher commented 2 years ago

Report from user:

Cloud you tell me the pangolin network currently updated? I was using @darwinia/types to connect Crab & Pangolin. const apiPromise = await ApiPromise.create({ provider: provider, typesBundle: darwiniaTypesBundle, }); 2 days ago, I found I can't connect Pangolin. But I can connect Crab and Kusama still now. This is error screen. Any opinion?

file_39

sxlwar commented 2 years ago

The error is caused by Rang types error in Polkadot metaV14. https://github.com/polkadot-js/api/issues/4453

hackfisher commented 2 years ago

Fixed in upstream, should be able to fix it by using the latest @polkadot/api