setAddress method
Future<String>
setAddress(
- EthereumAddress address,
- BigInt coinType, {
- required Credentials credentials,
- 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;
}