ethereum/py-evm

Why are contract creators not allowed to have a nonce of 0?

Pet3ris opened this issue · 1 comments

Hi There,

What is wrong?

I'm trying to create a contract with an account that has a nonce of 0 and it's failing due to the address generation. I can see here that the 1 is subtracted from the sender nonce:

self.vm_state.get_nonce(transaction.sender) - 1,
.

How can it be fixed

Is this intentional? If so, are there ways around it?

Nevermind, just realised there is an increment nonce operation before that on line 60.