onChangeAddress method

TransactionOutput? onChangeAddress(
  1. ADAAddress onChangeAddress
)

Implementation

TransactionOutput? onChangeAddress(ADAAddress onChangeAddress) {
  if (_fee == null) {
    throw const ADAPluginException(
        "please calculation the transaction fees befor using change address.");
  }
  final change = _changeOutput(onChangeAddress);
  if (change != null) {
    _outputs = [..._outputs, change];
  }
  return change;
}