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(); }