From f186bbe7b98ffeed99535fef366931400d6f1eae Mon Sep 17 00:00:00 2001 From: "Nelson R. Perez" Date: Thu, 25 Jan 2018 18:04:26 -0500 Subject: [PATCH] Adding a getter to the Transaction's blockData attribute --- .../main/java/cy/agorise/graphenej/Transaction.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/graphenej/src/main/java/cy/agorise/graphenej/Transaction.java b/graphenej/src/main/java/cy/agorise/graphenej/Transaction.java index acf5412..e4fceed 100644 --- a/graphenej/src/main/java/cy/agorise/graphenej/Transaction.java +++ b/graphenej/src/main/java/cy/agorise/graphenej/Transaction.java @@ -100,13 +100,21 @@ public class Transaction implements ByteSerializable, JsonSerializable { } /** - * Updates the block data + * Block data getter * @param blockData New block data */ public void setBlockData(BlockData blockData){ this.blockData = blockData; } + /** + * Block data setter + * @return BlockData instance + */ + public BlockData getBlockData(){ + return this.blockData; + } + /** * Updates the fees for all operations in this transaction. * @param fees: New fees to apply