hyperledger / besu

An enterprise-grade Java-based, Apache 2.0 licensed Ethereum client https://wiki.hyperledger.org/display/besu
https://www.hyperledger.org/projects/besu
Apache License 2.0
1.43k stars 757 forks source link

check correctly the storage in ToyAccount #7214

Closed matkt closed 3 weeks ago

matkt commented 3 weeks ago

PR description

We are not correctly checking the storage in the ToyAccount for the isStorageEmpty method. It can create issue during the contract creation step when we check if an account exist or not (only a problem for the toy environment and not a problem for mainnet).

Fixed Issue(s)

Thanks for sending a pull request! Have you done the following?

Locally, you can run these tests to catch failures early: