From 192226091f94f085d6ce348fbc78792a973f2922 Mon Sep 17 00:00:00 2001
From: Robert Martin-Legene <robert@nic.ar>
Date: Thu, 10 Oct 2019 01:48:36 -0300
Subject: [PATCH] Satoshi -> wei. Satoshi es de bitcoin.

---
 bin/localstate.pl | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/bin/localstate.pl b/bin/localstate.pl
index f3af0d1..9864f02 100755
--- a/bin/localstate.pl
+++ b/bin/localstate.pl
@@ -275,8 +275,7 @@ if ( $result )
             $txn                =~  s/^0x([a-fA-F\d]+)$/hex($1)/e;
             my      $gold       =   rpc( $libbfa, 'eth_getBalance', qq("$account"), '"latest"' );
             $gold               =   Math::BigInt->new( $gold ) if $gold =~ /^0x/;
-            #$gold               =   Math::BigInt->new( $gold ) if $gold =~ s/^0x([\da-fA-F]{2})/0x0000$1/;
-            printf "Account %d: %s %-6s %3d transaction%s, %s satoshi.\n", $i, $account, $maymine, $txn, ($txn==1?' ':'s'), $gold;
+            printf "Account %d: %s %-6s %3d transaction%s, %s wei.\n", $i, $account, $maymine, $txn, ($txn==1?' ':'s'), $gold;
         }
     }
     else
-- 
GitLab