From c1c0ed4f67c851fc91384cc70de706134a98130e Mon Sep 17 00:00:00 2001 From: Pakorn Nathong Date: Fri, 17 Sep 2021 23:04:22 +0700 Subject: [PATCH 1/2] fix: BigInt not parsed properly on contract call --- lib/src/ethers/contract.dart | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/src/ethers/contract.dart b/lib/src/ethers/contract.dart index 568bf27..09826b8 100644 --- a/lib/src/ethers/contract.dart +++ b/lib/src/ethers/contract.dart @@ -194,12 +194,10 @@ class Contract extends Interop<_ContractImpl> { impl, method, args.map((e) { - switch (e) { - case BigInt: - return e.toString(); - default: - return e; + if (e is BigInt) { + return e.toString(); } + return e; }).toList())); } } catch (error) { From 996c84b4a21a9da94dd2471019160d0c564c0a5d Mon Sep 17 00:00:00 2001 From: Pakorn Nathong Date: Fri, 17 Sep 2021 23:09:36 +0700 Subject: [PATCH 2/2] package: publish 2.1.1 --- CHANGELOG.md | 4 ++++ pubspec.yaml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ee99042..e85d5c0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 2.1.1 + +- Fix BigInt not parsed properly on contract call + ## 2.1.0 - Implement EIP-15559 properties (#7) diff --git a/pubspec.yaml b/pubspec.yaml index 9ba2c55..556057b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_web3 description: Web3 Ethereum, Etherjs and Wallet Connect wrapper for Flutter Web. Made especially for developing Dapp. -version: 2.1.0 +version: 2.1.1 repository: https://github.com/y-pakorn/flutter_web3 issue_tracker: https://github.com/y-pakorn/flutter_web3/issues