titanoboa icon indicating copy to clipboard operation
titanoboa copied to clipboard

`boa.env.fork` is allowed on NetworkEnv but will broadcast transactions

Open PatrickAlphaC opened this issue 1 year ago • 1 comments

I can run:

boa.env.fork(URL, deprecated=False)

And then, if I deploy a contract or try to send a TX, if I have an account added, it will broadcast the transaction instead of running it on the pyevm.

This should be disabled, you should not be able to send transactions on a real network when the API makes you think you are on a forked network.

PatrickAlphaC avatar Oct 01 '24 14:10 PatrickAlphaC