File tree Expand file tree Collapse file tree 6 files changed +20
-36
lines changed Expand file tree Collapse file tree 6 files changed +20
-36
lines changed Original file line number Diff line number Diff line change @@ -59,8 +59,3 @@ def copy(self: T, **kwargs: Any) -> T:
59
59
new_target = self .spoof_target .copy (** kwargs )
60
60
new_overrides = merge (self .overrides , kwargs )
61
61
return type (self )(new_target , ** new_overrides )
62
-
63
-
64
- class SpoofTransaction (SpoofAttributes ):
65
- def __init__ (self , transaction : BaseTransaction , ** overrides : Any ) -> None :
66
- super ().__init__ (transaction , ** overrides )
Original file line number Diff line number Diff line change 1
- from typing import (
2
- Optional ,
3
- )
1
+ from typing import Optional
4
2
5
- from cytoolz import (
6
- curry ,
7
- )
3
+ from eth_utils .toolz import curry
8
4
9
- from eth .exceptions import (
10
- VMError ,
11
- )
5
+ from eth .exceptions import VMError
12
6
13
- from eth .rlp .transactions import (
14
- BaseTransaction ,
15
- )
16
-
17
- from eth ._utils .spoof import (
18
- SpoofTransaction ,
19
- )
20
-
21
- from eth .vm .state import (
22
- BaseState ,
23
- )
7
+ from eth .rlp .transactions import BaseTransaction
8
+ from eth .vm .spoof import SpoofTransaction
9
+ from eth .vm .state import BaseState
24
10
25
11
26
12
def _get_computation_error (state : BaseState , transaction : SpoofTransaction ) -> Optional [VMError ]:
Original file line number Diff line number Diff line change 25
25
)
26
26
27
27
if TYPE_CHECKING :
28
- from eth .rlp .transactions import ( # noqa: F401
29
- BaseTransaction
30
- )
31
- from eth ._utils .spoof import ( # noqa: F401
32
- SpoofTransaction
33
- )
34
- from eth .vm .base import ( # noqa: F401
35
- BaseVM
36
- )
28
+ from eth .rlp .transactions import BaseTransaction # noqa: F401
29
+ from eth .vm .spoof import SpoofTransaction # noqa: F401
30
+ from eth .vm .base import BaseVM # noqa: F401
37
31
38
32
39
33
# TODO: Move into eth_typing
Original file line number Diff line number Diff line change
1
+ from typing import Any
2
+
3
+ from eth .rlp .transactions import BaseTransaction
4
+ from eth ._utils .spoof import SpoofAttributes
5
+
6
+
7
+ class SpoofTransaction (SpoofAttributes ):
8
+ def __init__ (self , transaction : BaseTransaction , ** overrides : Any ) -> None :
9
+ super ().__init__ (transaction , ** overrides )
Original file line number Diff line number Diff line change 11
11
12
12
from eth .chains .base import MiningChain
13
13
14
- from eth ._utils .spoof import (
14
+ from eth .vm .spoof import (
15
15
SpoofTransaction ,
16
16
)
17
17
Original file line number Diff line number Diff line change 33
33
from eth .rlp .headers import (
34
34
BlockHeader
35
35
)
36
- from eth ._utils .spoof import (
36
+ from eth .vm .spoof import (
37
37
SpoofTransaction ,
38
38
)
39
39
from eth .vm .state import (
You can’t perform that action at this time.
0 commit comments