aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/block_chain.go
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2014-06-30 01:30:05 +0800
committerzelig <viktor.tron@gmail.com>2014-06-30 01:30:05 +0800
commitdabaa4cce01586fd8b1b9314073a1d26f35355c8 (patch)
treefff48b2c62a1d717a7d95ffb99e9eb1d99dbf7bb /ethchain/block_chain.go
parent707d413761927f5ad95298e666e297b820ad0901 (diff)
downloaddexon-dabaa4cce01586fd8b1b9314073a1d26f35355c8.tar
dexon-dabaa4cce01586fd8b1b9314073a1d26f35355c8.tar.gz
dexon-dabaa4cce01586fd8b1b9314073a1d26f35355c8.tar.bz2
dexon-dabaa4cce01586fd8b1b9314073a1d26f35355c8.tar.lz
dexon-dabaa4cce01586fd8b1b9314073a1d26f35355c8.tar.xz
dexon-dabaa4cce01586fd8b1b9314073a1d26f35355c8.tar.zst
dexon-dabaa4cce01586fd8b1b9314073a1d26f35355c8.zip
change all modified calls to ethtrie, ethutil and ethcrypto functions
Diffstat (limited to 'ethchain/block_chain.go')
-rw-r--r--ethchain/block_chain.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethchain/block_chain.go b/ethchain/block_chain.go
index 6e4c72b27..7a481ed7c 100644
--- a/ethchain/block_chain.go
+++ b/ethchain/block_chain.go
@@ -278,7 +278,7 @@ func AddTestNetFunds(block *Block) {
"e6716f9544a56c530d868e4bfbacb172315bdead",
"1a26338f0d905e295fccb71fa9ea849ffa12aaf4",
} {
- codedAddr := ethutil.FromHex(addr)
+ codedAddr := ethutil.Hex2Bytes(addr)
account := block.state.GetAccount(codedAddr)
account.Amount = ethutil.Big("1606938044258990275541962092341162602522202993782792835301376") //ethutil.BigPow(2, 200)
block.state.UpdateStateObject(account)