mirror of
https://github.com/status-im/ethereumj-personal.git
synced 2025-02-25 09:55:17 +00:00
balance subtraction bug , found in the movie :)
This commit is contained in:
parent
e5e65b48d3
commit
8677b77def
@ -89,8 +89,8 @@ public class Wallet {
|
||||
AccountState senderState = rows.get(Hex.toHexString(senderAddress));
|
||||
if (senderState != null){
|
||||
|
||||
BigInteger value = new BigInteger(transaction.getValue());
|
||||
senderState.addToBalance(value.negate());
|
||||
BigInteger value = new BigInteger(-1, transaction.getValue());
|
||||
senderState.addToBalance(value);
|
||||
senderState.incrementNonce();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user