Adding setters to TransferOperation

master
Nelson R. Perez 2017-02-22 23:05:14 -05:00
parent f7283e26e1
commit 93dd6ef1b2
1 changed files with 17 additions and 5 deletions

View File

@ -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();