ShieldedTransferContract constructor
ShieldedTransferContract({})
Create a new ShieldedTransferContract instance with specified parameters.
Implementation
ShieldedTransferContract(
{List<int>? transparentFromAddress,
this.fromAmount,
List<SpendDescription>? spendDescription,
List<ReceiveDescription>? receiveDescription,
List<int>? bindingSignature,
List<int>? transparentToAddress,
this.toAmount})
: transparentFromAddress =
BytesUtils.tryToBytes(transparentFromAddress, unmodifiable: true),
bindingSignature =
BytesUtils.tryToBytes(bindingSignature, unmodifiable: true),
transparentToAddress =
BytesUtils.tryToBytes(transparentToAddress, unmodifiable: true),
spendDescription = spendDescription == null
? null
: List<SpendDescription>.unmodifiable(spendDescription),
receiveDescription = receiveDescription == null
? null
: List<ReceiveDescription>.unmodifiable(receiveDescription);