public void TryPasteTransactionFromClipboard() { if (HashgraphClipboard.TryGetAsBytes <TransactionBody>("Hedera Transaction", out ReadOnlyMemory <byte> data, out string error)) { Transaction = new TransactionModel(data); SigningData.TransactionBodyBytes = data; ValidationMessage = string.Empty; } else { ValidationMessage = error; } }
public bool TryPasteFromClipboard() { if (HashgraphClipboard.TryGetAsBytes <TransactionBody>("Hedera Transaction", out ReadOnlyMemory <byte> data, out string error)) { SigningData.TransactionBodyBytes = data; TransactionBodyBytes = data; return(true); } else { ValidationMessage = error; return(false); } }