setAddress method

Future<String> setAddress(
  1. EthereumAddress address,
  2. BigInt coinType, {
  3. required Credentials credentials,
  4. Transaction? transaction,
})

Returns the address for the current ENS name for the coinId provided.

Implementation

Future<String> setAddress(
  EthereumAddress address,
  BigInt coinType, {
  required Credentials credentials,
  Transaction? transaction,
}) async {
  if (ensName == null) {
    throw 'ensName needs to be set first with .withName()';
  }

  final _resolvedAddress = await setAddr(
    nodeHash,
    coinType,
    address.addressBytes,
    credentials: credentials,
    transaction: transaction,
  );
  return _resolvedAddress;
}