From 93dd6ef1b2c2997f6ea3a8fcbd2f14071ce75901 Mon Sep 17 00:00:00 2001 From: "Nelson R. Perez" Date: Wed, 22 Feb 2017 23:05:14 -0500 Subject: [PATCH] Adding setters to TransferOperation --- .../graphenej/TransferOperation.java | 22 ++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/graphenej/src/main/java/de/bitsharesmunich/graphenej/TransferOperation.java b/graphenej/src/main/java/de/bitsharesmunich/graphenej/TransferOperation.java index bbf2204..10c3acf 100644 --- a/graphenej/src/main/java/de/bitsharesmunich/graphenej/TransferOperation.java +++ b/graphenej/src/main/java/de/bitsharesmunich/graphenej/TransferOperation.java @@ -41,11 +41,6 @@ public class TransferOperation extends BaseOperation { this.memo = new Memo(); } - @Override - public void setFee(AssetAmount newFee){ - this.fee = newFee; - } - public UserAccount getFrom(){ return this.from; } @@ -62,6 +57,23 @@ public class TransferOperation extends BaseOperation { return this.fee; } + public void setAssetAmount(AssetAmount assetAmount){ + this.amount = assetAmount; + } + + public void setFrom(UserAccount from) { + this.from = from; + } + + public void setTo(UserAccount to) { + this.to = to; + } + + @Override + public void setFee(AssetAmount newFee){ + this.fee = newFee; + } + @Override public byte[] toBytes() { byte[] feeBytes = fee.toBytes();