ens review fixes

This commit is contained in:
fosse 2023-09-25 09:47:39 -04:00
parent b5852509f3
commit 8b2b3bda16
8 changed files with 52 additions and 20 deletions

View file

@ -226,6 +226,10 @@ I/flutter ( 4474): Gas Used: 53000
}
}
dynamic getWeb3Client() {
return _client;
}
// Future<int> _getDecimalPlacesForContract(DeployedContract contract) async {
// final String abi = await rootBundle.loadString("assets/abi_json/erc20_abi.json");
// final contractAbi = ContractAbi.fromJson(abi, "ERC20");

View file

@ -509,7 +509,5 @@ abstract class EthereumWalletBase
String signMessage(String message, {String? address = null}) =>
bytesToHex(_ethPrivateKey.signPersonalMessageToUint8List(ascii.encode(message)));
Future<String> fetchEnsAddress(String name) async {
return await _client.checkEnsName(name);
}
dynamic getWeb3Client() => _client;
}

View file

@ -21,10 +21,6 @@ dependencies:
hex: ^0.2.0
http: ^1.1.0
shared_preferences: ^2.0.15
ens_dart:
git:
url: https://github.com/cake-tech/ens_dart.git
ref: main
cw_core:
path: ../cw_core