mirror of
https://github.com/SimplexDevelopment/FreedomNetworkSuite.git
synced 2025-06-26 19:44:27 +00:00
Refactor transaction balance methods to be more in-line with EconomicEntityData
This commit is contained in:
@ -43,15 +43,15 @@ public class SimpleTransaction implements Transaction
|
||||
}
|
||||
|
||||
@Override
|
||||
public long addBalance(long amount)
|
||||
public long addToBalance(long amount)
|
||||
{
|
||||
return balance.addAndGet(amount);
|
||||
}
|
||||
|
||||
@Override
|
||||
public long removeBalance(long amount)
|
||||
public long removeFromBalance(long amount)
|
||||
{
|
||||
return this.addBalance(-amount);
|
||||
return this.addToBalance(-amount);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user