mirror of
https://github.com/Qortal/AT.git
synced 2025-01-30 19:02:14 +00:00
MachineState's initial previousBalance is set to AT's balance at deployment
This commit is contained in:
parent
d22e16e033
commit
18f679e6eb
@ -237,7 +237,7 @@ public class MachineState {
|
||||
this.frozenBalance = null;
|
||||
this.isFinished = false;
|
||||
this.hadFatalError = false;
|
||||
this.previousBalance = 0;
|
||||
this.previousBalance = this.api.getCurrentBalance(this); // Initial previousBalance is deployment balance
|
||||
|
||||
// If we have a minimum activation amount then create AT in frozen state, requiring that amount to unfreeze.
|
||||
// If creator also sends funds with creation then AT will unfreeze on first call.
|
||||
@ -409,8 +409,7 @@ public class MachineState {
|
||||
this.currentBalance = currentBalance;
|
||||
}
|
||||
|
||||
// For FunctionCode use
|
||||
/* package */ long getPreviousBalance() {
|
||||
public long getPreviousBalance() {
|
||||
return this.previousBalance;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user