leonardocustodio / polkadart

Polkadart provides developers the ability to query a node and interact with the Polkadot based chains using Dart.
https://polkadart.dev
Apache License 2.0
39 stars 16 forks source link

cli gen code error on manta network with 'type 'Null' is not a subtype of type 'String'' #449

Closed gtmickey closed 7 months ago

gtmickey commented 8 months ago
type 'Null' is not a subtype of type 'String'
#0      StateApi.getMetadata (package:polkadart/apis/state.dart:152:45)
<asynchronous suspension>
#1      chainProperties (file:///Users/gtmickey/.pub-cache/hosted/pub.dev/polkadart_cli-0.4.2/bin/generate.dart:38:27)
<asynchronous suspension>
#2      main (file:///Users/gtmickey/.pub-cache/hosted/pub.dev/polkadart_cli-0.4.2/bin/generate.dart:73:40)

config:

polkadart:
  output_dir: lib/generated
  chains: # Dictionary of chains and endpoints
    polkadot: wss://rpc.polkadot.io
    manta: wss://pacific-rpc.manta.network/ws
leonardocustodio commented 7 months ago

Are you sure that URL is correct? It seems it is trying to fetch the metadata and nothing is being returned... Can you try: wss://ws.manta.systems instead?