hanggi / ethers Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
RPCError: got code -32000 with msg "replacement transaction underpriced".
I am unable to transact any ether and getting the above-shared error. I tried the older as well as the new version but it keeps throwing the same error.
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
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
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.
Kindly assist if you can. Thanks in advance.
look on this guy implementation
https://github.com/FAME-Capital/ethers_flutter
he didnt finished it, but the way is much better
@override
signMessage() {
// TODO: implement signMessage
throw UnimplementedError();
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.