Giter Club home page Giter Club logo

Comments (2)

vbuterin avatar vbuterin commented on August 19, 2024

Pull my latest commit and try again. Should be fixed.

On 14-05-06 10:43 AM, jorisbontje wrote:

Using the subcurrency.se example from
http://blog.ethereum.org/2014/04/10/pyethereum-and-serpent-programming-guide-2/,
the init clause persists the data in the invalid state '' instead of
that of the contract itself ('da7ce79725418f4f6e13bf5f520c89cec5f6a974'):

|{'coinbase': '0000000000000000000000000000000000000000',
'difficulty': 4194304,
'extra_data': '',
'gas_limit': 1000000,
'gas_used': 1973L,
'min_gas_price': 1000000000000000,
'nonce': '\x04\x99Og\xdcU\xb0\x9e\x81J\xb7\xff\xc8\xdf6\x86\xb4\xaf\xb2\xbbS\xe6\x0e\xae\x97\xef\x04?\xe0?\xb8)',
'number': 0,
'prevhash': '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00',
'state': {'': {'balance': 0L,
'code': '',
'nonce': 0L,
'storage': {1171285107467697789631807507971492729443352172582L: 1000000L}},
'0000000000000000000000000000000000000000': {'balance': 1973000000000000L,
'code': '',
'nonce': 0L,
'storage': {}},
'cd2a3d9f938e13cd947ec05abc7fe734df8dd826': {'balance': 998027000000000000L,
'code': '',
'nonce': 1L,
'storage': {}},
'da7ce79725418f4f6e13bf5f520c89cec5f6a974': {'balance': 0L,
'code': '6000609f556001602036040c0d61002759600035600054600053565b525b54602052f26100785833602054602053566040546000356060546020356080546080536040530a61006e59608053604053036020535760805360605356016060535760015b525b54602052f26100785860005b525b54602052f2',
'nonce': 0L,
'storage': {}}},
'state_root': '\x14\xae\xbb\xf2\xff]%\n,\xf4y\xc4\xf3\x10\x96?\xe0|\x1a\xc9)%\xe1\xbc\xf6E\x88\x8a\xacx\xce',
'timestamp': 0,
'tx_list_root': '\x94\x1e\xaa\xb7\x10\xfa\xe1b\xe1$,~Ek\x94\xec\xd4\xac?;\t>]\x159)\x06:\xfdy\xd1\x9b',
'uncles_hash': '\x1d\xccM\xe8\xde\xc7]z\xab\x85\xb5g\xb6\xcc\xd4\x1a\xd3\x12E\x1b\x94\x8at\x13\xf0\xa1B\xfd@\xd4\x93G'}
|

Test to reproduce:
https://github.com/EtherCasts/evm-sim/tree/master/tests/test_subcurrency.py


Reply to this email directly or view it on GitHub
#87.

from pyethereum.

jorisbontje avatar jorisbontje commented on August 19, 2024

Fixed! 👯

from pyethereum.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.