From 1f904dcd47f0fb6162154f726a547634ea7300b7 Mon Sep 17 00:00:00 2001 From: Omar Hatem Date: Fri, 29 Mar 2024 20:59:26 +0200 Subject: [PATCH] Generic fixes (#1354) * Change order of currencies in currency picker * Disable Background sync until implemented properly * remove ability to use device pin in bio auth * Fix condition * Minor fix [skip ci] * make notifications red dot go when opened * Update Frozen coin text color * Update Frozen coin text color * Fetch internal transactions for eth and polygon * Remove debug prints [skip ci] * Fix Camera permission on iOS [skip ci] * Minor fixes [skip ci] --------- Co-authored-by: tuxsudo --- cw_ethereum/lib/ethereum_client.dart | 2 +- cw_polygon/lib/polygon_client.dart | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/cw_ethereum/lib/ethereum_client.dart b/cw_ethereum/lib/ethereum_client.dart index 10dc245d4..f2b25bcdd 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 0cd671e41..42fdd2e25 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(); }