From c34bb5f2c92deff2a43583f950fd6ee921865f00 Mon Sep 17 00:00:00 2001 From: Matthew Fosse Date: Wed, 20 Mar 2024 08:50:52 -0700 Subject: [PATCH] test evm fix --- cw_evm/lib/evm_chain_client.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cw_evm/lib/evm_chain_client.dart b/cw_evm/lib/evm_chain_client.dart index de5b3874a..809909d81 100644 --- a/cw_evm/lib/evm_chain_client.dart +++ b/cw_evm/lib/evm_chain_client.dart @@ -16,7 +16,7 @@ import 'package:erc20/erc20.dart'; import 'package:web3dart/web3dart.dart'; abstract class EVMChainClient { - final httpClient = Client(); + Client httpClient = Client(); Web3Client? _client; //! To be overridden by all child classes @@ -32,6 +32,8 @@ abstract class EVMChainClient { bool connect(Node node) { try { + // re-initialize the client so any proxy wrapper settings take effect: + httpClient = Client(); _client = Web3Client(node.uri.toString(), httpClient); return true;