diff --git a/cw_ethereum/lib/ethereum_client.dart b/cw_ethereum/lib/ethereum_client.dart index 10dc245d4e..f2b25bcdd7 100644 --- a/cw_ethereum/lib/ethereum_client.dart +++ b/cw_ethereum/lib/ethereum_client.dart @@ -48,7 +48,7 @@ class EthereumClient extends EVMChainClient { final response = await httpClient.get(Uri.https("api.etherscan.io", "/api", { "module": "account", "action": "txlistinternal", - "address": "0x72067Bf532b21A096D2e2B4953d69554E1a61917", + "address": address, "apikey": secrets.etherScanApiKey, })); diff --git a/cw_polygon/lib/polygon_client.dart b/cw_polygon/lib/polygon_client.dart index 0cd671e41f..42fdd2e25b 100644 --- a/cw_polygon/lib/polygon_client.dart +++ b/cw_polygon/lib/polygon_client.dart @@ -13,8 +13,6 @@ class PolygonClient extends EVMChainClient { required EthereumAddress to, required EtherAmount amount, EtherAmount? maxPriorityFeePerGas, - Uint8List? data, - }) { return Transaction( from: from, @@ -71,7 +69,7 @@ class PolygonClient extends EVMChainClient { if (response.statusCode >= 200 && response.statusCode < 300 && jsonResponse['status'] != 0) { return (jsonResponse['result'] as List) - .map((e) => EVMChainTransactionModel.fromJson(e as Map, 'ETH')) + .map((e) => EVMChainTransactionModel.fromJson(e as Map, 'MATIC')) .toList(); }