Adding setters to TransferOperation

This commit is contained in:
Nelson R. Perez 2017-02-22 23:05:14 -05:00
parent f7283e26e1
commit 93dd6ef1b2

View file

@ -41,11 +41,6 @@ public class TransferOperation extends BaseOperation {
this.memo = new Memo(); this.memo = new Memo();
} }
@Override
public void setFee(AssetAmount newFee){
this.fee = newFee;
}
public UserAccount getFrom(){ public UserAccount getFrom(){
return this.from; return this.from;
} }
@ -62,6 +57,23 @@ public class TransferOperation extends BaseOperation {
return this.fee; 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 @Override
public byte[] toBytes() { public byte[] toBytes() {
byte[] feeBytes = fee.toBytes(); byte[] feeBytes = fee.toBytes();