Minor changes.
This commit is contained in:
parent
32d45a76fa
commit
35433fcaca
|
@ -41,7 +41,7 @@ def get_tester(code):
|
|||
EthereumTester,
|
||||
)
|
||||
tester = EthereumTester(backend=PyEVMDebugBackend())
|
||||
import ipdb; ipdb.set_trace()
|
||||
|
||||
def zero_gas_price_strategy(web3, transaction_params=None):
|
||||
return 0 # zero gas price makes testing simpler.
|
||||
|
||||
|
|
|
@ -23,10 +23,12 @@ class DebugComputation(ByzantiumComputation):
|
|||
|
||||
@classmethod
|
||||
def apply_computation(cls, state, message, transaction_context):
|
||||
print('hello!!!!!!')
|
||||
import ipdb; ipdb.set_trace()
|
||||
|
||||
with cls(state, message, transaction_context) as computation:
|
||||
|
||||
print('hello!!!!!!')
|
||||
import ipdb; ipdb.set_trace()
|
||||
|
||||
# Early exit on pre-compiles
|
||||
if message.code_address in computation.precompiles:
|
||||
computation.precompiles[message.code_address](computation)
|
||||
|
|
|
@ -45,5 +45,8 @@ def _setup_tester_chain():
|
|||
|
||||
class PyEVMDebugBackend(PyEVMBackend):
|
||||
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
|
||||
def reset_to_genesis(self):
|
||||
self.account_keys, self.chain = _setup_tester_chain()
|
||||
|
|
Loading…
Reference in New Issue