Giter Site home page Giter Site logo

ethers's People

Contributors

hanggi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ethers's Issues

'Rational' can't be assigned to a variable of type 'Decimal'.

While building app with this plugin I am getting this error

Error: A value of type 'Rational' can't be assigned to a variable of type 'Decimal'.

Flutter Version

flutter --version
Flutter 3.7.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision b06b8b2710 (9 days ago) • 2023-01-23 16:55:55 -0800
Engine • revision b24591ed32
Tools • Dart 2.19.0 • DevTools 2.20.1

NoSuchMethodError: No top-level method '_WNafMultiplier' declared.

Error when running the example

final mnemonic = "announce room limb pattern dry unit scale effort smooth jazz weasel alcohol";

final wallet = Wallet.fromMnemonic(
  mnemonic,
  path: "m/44'/60'/0'/0/0",
);

print('address: ${wallet.address}');

ERROR

[ERROR:flutter[/lib/ui/ui_dart_state.cc]()(209)] Unhandled Exception: NoSuchMethodError: No top-level method '_WNafMultiplier' declared.
Receiver: top-level
Tried calling: _WNafMultiplier(Instance of 'ECPoint', Instance of '_BigIntImpl', Instance of '_WNafPreCompInfo')
#0      NoSuchMethodError._throwNewInvocation (dart:core-patch[/errors_patch.dart:207:5]())
#1      ECPointBase.*
package:pointycastle/ecc/ecc_base.dart:153
#2      pointFromScalar
package:bip32/…/utils/ecurve.dart:93
#3      BIP32.publicKey
package:bip32/src/bip32_base.dart:40
#4      HDNode._nodeFromRoot (package:ethers[/utils/hdnode/hd_node.dart:88:49]())
#5      new HDNode._fromSeed (package:ethers[/utils/hdnode/hd_node.dart:115:12]())
#6      new HDNode.fromMnemonic (package:ethers[/utils/hdnode/hd_node.dart:123:19]())
#7      new Wallet.fromMnemonic (package:ethers[/signers/wallet.dart:95:37]())
#8      MainScreen.build.<anonymous closure>
package:testing/main.dart:61
#9      MainScreen.build.<anonymous closure>
package:testing/main.dart:47
#10     _InkResponseState._handleTap
package:flutter/…/material/ink_well.dart:989
#11     GestureRecognizer.invokeCallback
package:flutter/…/gestures/recognizer.dart:198
#12     TapGestureRecognizer.handleTapUp
package:flutter/…/gestures/tap.dart:608

QUESTION: Error during initialisation

Hi @Hanggi ,

I have added the ethers package and imported the package as instructed in the current README .
I am currently having this error on the next step.

const provider = new ethers.providers.JsonRpcProvider();

ERROR

error: Const variables must be initialized with a constant value.

error: The prefix 'ethers' can't be used here because it is shadowed by a local declaration.

image

Kindly assist if you can. Thanks in advance.

signMessage?

@override
  signMessage() {
    // TODO: implement signMessage
    throw UnimplementedError();
  }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.