From 158084652a46b04280db08cb99123ab28dc90d2a Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Tue, 5 Aug 2014 11:18:29 +0300 Subject: [PATCH] Fix contract endowment. --- libethereum/State.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libethereum/State.cpp b/libethereum/State.cpp index afa6b11f2..a13b0dfee 100644 --- a/libethereum/State.cpp +++ b/libethereum/State.cpp @@ -1106,7 +1106,7 @@ h160 State::create(Address _sender, u256 _endowment, u256 _gasPrice, u256* _gas, newAddress = (u160)newAddress + 1; // Set up new account... - m_cache[newAddress] = AddressState(0, 0, h256(), h256()); + m_cache[newAddress] = AddressState(0, _endowment, h256(), h256()); // Execute init code. VM vm(*_gas);