Fix transaction target value
This commit is contained in:
parent
ff62ecae0c
commit
def86e261c
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ module Hodler
|
||||||
wallets[to_id] ||= 0
|
wallets[to_id] ||= 0
|
||||||
wallets[from_id] -= tr.from.amount
|
wallets[from_id] -= tr.from.amount
|
||||||
wallets[fee_id] -= tr.fee.amount
|
wallets[fee_id] -= tr.fee.amount
|
||||||
wallets[to_id] += tr.from.amount
|
wallets[to_id] += tr.to.amount
|
||||||
|
|
||||||
pp tr
|
pp tr
|
||||||
pp wallets
|
pp wallets
|
||||||
|
|
Loading…
Reference in a new issue