mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-22 19:49:22 +00:00
test evm fix
This commit is contained in:
parent
46ff2706d9
commit
c34bb5f2c9
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue