addr method
- required String name,
Implementation
Future<String?> addr({required String name}) async {
final function = abi.functions[1];
assert(function.functionSelectorHex == "3b3b57de");
final node = namehash(name);
final result = await readSafe(
function: function.addValues(values: [node]),
);
final address = result.outputs.first.value as String;
if (address == nullAddress) {
return null;
}
return address;
}