File tree 2 files changed +6
-5
lines changed
eth_tester/backends/pyevm
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -347,12 +347,13 @@ def take_snapshot(self):
347
347
348
348
def revert_to_snapshot (self , snapshot ):
349
349
block = self .chain .get_block_by_hash (snapshot )
350
+ chaindb = self .chain .chaindb
350
351
if block .number > 0 :
351
- self . chain . chaindb ._set_as_canonical_chain_head (block .header )
352
+ chaindb ._set_as_canonical_chain_head (chaindb . db , block .header . hash )
352
353
self .chain .import_block (block )
353
354
else :
354
- self . chain . chaindb ._set_as_canonical_chain_head (block .header )
355
- self .chain = self .chain .from_genesis_header (self . chain . chaindb .db , block .header )
355
+ chaindb ._set_as_canonical_chain_head (chaindb . db , block .header . hash )
356
+ self .chain = self .chain .from_genesis_header (chaindb .db , block .header )
356
357
357
358
#
358
359
# Meta
Original file line number Diff line number Diff line change 23
23
'py-evm' : [
24
24
# Pin py-evm to exact version, until it leaves alpha.
25
25
# EVM is very high velocity and might change API at each alpha.
26
- "py-evm==0.2.0a32 " ,
26
+ "py-evm==0.2.0a33 " ,
27
27
"eth-hash[pysha3]>=0.1.4,<1.0.0;implementation_name=='cpython'" ,
28
28
"eth-hash[pycryptodome]>=0.1.4,<1.0.0;implementation_name=='pypy'" ,
29
29
],
52
52
install_requires = [
53
53
"toolz>0.8.2,<1;implementation_name=='pypy'" ,
54
54
"cytoolz>=0.8.2,<1.0.0;implementation_name=='cpython'" ,
55
- "eth-utils>=1.0 .1,<2.0.0" ,
55
+ "eth-utils>=1.1 .1,<2.0.0" ,
56
56
"rlp>=0.6.0,<2.0.0" ,
57
57
"semantic_version>=2.6.0,<3.0.0" ,
58
58
"eth-keys>=0.2.0-beta.3,<0.3.0" ,
You can’t perform that action at this time.
0 commit comments