Adding setters to TransferOperation
This commit is contained in:
parent
f7283e26e1
commit
93dd6ef1b2
1 changed files with 17 additions and 5 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue