From a2b67374c1946beb6e9928bfb8fd6b13e55556b2 Mon Sep 17 00:00:00 2001 From: Rafael Saes Date: Wed, 13 Dec 2023 17:04:59 -0300 Subject: [PATCH] fix: polygon wallet service --- cw_polygon/lib/polygon_wallet_service.dart | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cw_polygon/lib/polygon_wallet_service.dart b/cw_polygon/lib/polygon_wallet_service.dart index dafe3bab0..548510ab3 100644 --- a/cw_polygon/lib/polygon_wallet_service.dart +++ b/cw_polygon/lib/polygon_wallet_service.dart @@ -19,7 +19,7 @@ class PolygonWalletService extends WalletService walletInfoSource; @override - Future create(PolygonNewWalletCredentials credentials) async { + Future create(PolygonNewWalletCredentials credentials, {bool? isTestnet}) async { final strength = (credentials.seedPhraseLength == 12) ? 128 : (credentials.seedPhraseLength == 24) @@ -72,7 +72,8 @@ class PolygonWalletService extends WalletService restoreFromKeys(PolygonRestoreWalletFromPrivateKey credentials) async { + Future restoreFromKeys(PolygonRestoreWalletFromPrivateKey credentials, + {bool? isTestnet}) async { final wallet = PolygonWallet( password: credentials.password!, privateKey: credentials.privateKey, @@ -87,7 +88,8 @@ class PolygonWalletService extends WalletService restoreFromSeed(PolygonRestoreWalletFromSeedCredentials credentials) async { + Future restoreFromSeed(PolygonRestoreWalletFromSeedCredentials credentials, + {bool? isTestnet}) async { if (!bip39.validateMnemonic(credentials.mnemonic)) { throw EthereumMnemonicIsIncorrectException(); }