enhanceTransferStep method
Implementation
Future<EnhancedTransferStepDoc> enhanceTransferStep(
String operator,
TransferStep step,
) async {
final from = await getAccountInfoCached(
id: hex.encode(step.fromAccountId),
operator: operator,
);
final fromBank = from.parentAccountId.isNotEmpty
? await getAccountInfoCached(
id: hex.encode(from.parentAccountId),
operator: operator,
)
: null;
final to = await getAccountInfoCached(
id: hex.encode(step.toAccountId),
operator: operator,
);
final toBank = to.parentAccountId.isNotEmpty
? await getAccountInfoCached(
id: hex.encode(to.parentAccountId),
operator: operator,
)
: null;
return EnhancedTransferStepDoc(
step: step,
from: from,
to: to,
fromBank: fromBank,
toBank: toBank,
);
}