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

Build failed with an exception. #383

Closed StepanUsynin closed 10 months ago

StepanUsynin commented 11 months ago

Greetings! First of all, thank you very much for the package, I really hope it will continue to be supported.

I came across a problem. If I generate code for networks that have smart contracts module, I get the following error when building the project

lib/generated/astar/pallets/contracts.dart:432:36: Error: The method 'call' isn't defined for the class '$Call'.

FAILURE: Build failed with an exception.

network from pub spec yaml: polkadart: output_dir: lib/generated chains: Astar: wss://astar.public.blastapi.io

leonardocustodio commented 11 months ago

Can you provide us the version of the packages/dart/flutter and which platform (web, mobile, desktop)?

StepanUsynin commented 11 months ago

[✓] Flutter (Channel stable, 3.16.4, on macOS 14.0 23A344 darwin-arm64, locale en-RU) [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2) [✓] Xcode - develop for iOS and macOS (Xcode 15.0) [✓] Chrome - develop for the web [!] Android Studio (version unknown) ✗ Unable to determine Android Studio version. [✓] IntelliJ IDEA Community Edition (version 2023.2.5) [✓] VS Code (version 1.85.1) [✓] Connected device (5 available) [✓] Network resources

environment: sdk: '>=3.0.0 <4.0.0'

polkadart: ^0.2.6 polkadart_cli: ^0.2.4 polkadart_keyring: ^0.2.1 polkadart_scale_codec: ^1.1.2 ss58: ^1.1.2 substrate_bip39: ^0.2.0 substrate_metadata: ^1.1.2

polkadart: output_dir: lib/generated chains: Astar: wss://astar.public.blastapi.io

Tried to run on iOS and Android platforms. But actually the platform doesn't matter. This is a compile time error.

leonardocustodio commented 10 months ago

We have relead v0.3.1 of polkadart_cli with a fix for this. Thank you for your report.