Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

test_contracts.py TypeError #849

Open
Daltan opened this issue Jan 7, 2018 · 0 comments
Open

test_contracts.py TypeError #849

Daltan opened this issue Jan 7, 2018 · 0 comments

Comments

@Daltan
Copy link

Daltan commented Jan 7, 2018

platform linux -- Python 3.6.4, pytest-3.3.2, py-1.5.2, pluggy-0.6.0

python3.6 -m pytest test_contracts.py

54 passed 1 failed

test_contracts.py:364:


self = <ethereum.tools.tester.Chain object at 0x7f7e0f7dc1d0>
number_of_blocks = 100
timestamp = b'Y\x84C\xf1\x88\x0e\xf5\x85\xb2\x1f\x1du\x85\xbd\x05w@(a\xe5'
coinbase = b'\x82\xa9x\xb3\xf5\x96*[\tW\xd9\xee\x9e\xefG.\xe5[B\xf1'

    def mine(self, number_of_blocks=1, timestamp=14, coinbase=a0):
        self.cs.finalize(self.head_state, self.block)
        set_execution_results(self.head_state, self.block)
        self.block = Miner(self.block).mine(rounds=100, start_nonce=0)
        assert self.chain.add_block(self.block)
        b = self.block
        for i in range(1, number_of_blocks):
            b, _ = make_head_candidate(
>               self.chain, parent=b, timestamp=self.chain.state.timestamp + timestamp, coinbase=coinbase)

E TypeError: unsupported operand type(s) for +: 'int' and 'bytes'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant