Browse Source

Fix contract endowment.

cl-refactor
Gav Wood 11 years ago
parent
commit
158084652a
  1. 2
      libethereum/State.cpp

2
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);

Loading…
Cancel
Save