From def86e261ceef2e9107b9bf1416f49402efe0adf Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Sun, 4 Apr 2021 16:42:25 +0200 Subject: [PATCH] Fix transaction target value --- src/actions.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/actions.cr b/src/actions.cr index 0a6d401..e8da3e8 100644 --- a/src/actions.cr +++ b/src/actions.cr @@ -28,7 +28,7 @@ module Hodler wallets[to_id] ||= 0 wallets[from_id] -= tr.from.amount wallets[fee_id] -= tr.fee.amount - wallets[to_id] += tr.from.amount + wallets[to_id] += tr.to.amount pp tr pp wallets