Closed weixuefeng closed 11 months ago
when i call dart run polkadart_cli:generate -v
, i got error:
Building package executable...
Failed to build polkadart_cli:generate:
../../../.pub-cache/hosted/xx/watcher-1.0.2/lib/src/constructable_file_system_event.dart:7:57: Error: The class 'FileSystemEvent' can't be extended, implemented, or mixed in outside of its library because it's a sealed class.
abstract class _ConstructableFileSystemEvent implements FileSystemEvent {
^
Failed to build polkadart_cli:generate:
../../../.pub-cache/hosted/xx/watcher-1.0.2/lib/src/constructable_file_system_event.dart:7:57: Error: The class 'FileSystemEvent' can't be extended, implemented, or mixed in outside of its library because it's a sealed class.
abstract class _ConstructableFileSystemEvent implements FileSystemEvent {
dart pub upgrade
helped
Hello @weixuefeng , you can do the following to get the DOT balance of an account
Please note you need to use
polkadart_cli
to generate the queries/rpcs/etc.