File tree Expand file tree Collapse file tree 3 files changed +2
-28
lines changed
Expand file tree Collapse file tree 3 files changed +2
-28
lines changed Original file line number Diff line number Diff line change @@ -37,11 +37,3 @@ def is_fork_supported(self, fork: Fork) -> bool:
3737 Currently, evmone-t8n provides no way to determine supported forks.
3838 """
3939 return True
40-
41- @classmethod
42- def empty_string_to (cls ) -> bool :
43- """
44- Evmone requires an empty string within the `to` field for
45- contract-creating transactions.
46- """
47- return True
Original file line number Diff line number Diff line change @@ -163,14 +163,6 @@ def detect_binary(cls, binary_output: str) -> bool:
163163
164164 return cls .detect_binary_pattern .match (binary_output ) is not None
165165
166- @classmethod
167- def empty_string_to (cls ) -> bool :
168- """
169- Returns True if the tool requires an empty string `to` field
170- for contract creating transactions.
171- """
172- return False
173-
174166 def version (self ) -> str :
175167 """
176168 Return name and version of tool used to state transition
@@ -257,15 +249,6 @@ class TransitionToolData:
257249 fork_name : str
258250 chain_id : int = field (default = 1 )
259251 reward : int = field (default = 0 )
260- empty_string_to : bool = field (default = False )
261-
262- def __post_init__ (self ):
263- """
264- Ensure that the `to` field of transactions is not None
265- """
266- if self .empty_string_to :
267- for tx in self .txs :
268- tx ["to" ] = tx .get ("to" ) or ""
269252
270253 def to_input (self ) -> TransitionToolInput :
271254 """
@@ -532,14 +515,13 @@ def evaluate(
532515 fork_name = "+" .join ([fork_name ] + [str (eip ) for eip in eips ])
533516 if env .number == 0 :
534517 reward = - 1
535- t8n_data = TransitionTool .TransitionToolData (
518+ t8n_data = self .TransitionToolData (
536519 alloc = alloc ,
537520 txs = txs ,
538521 env = env ,
539522 fork_name = fork_name ,
540523 chain_id = chain_id ,
541524 reward = reward ,
542- empty_string_to = self .empty_string_to (),
543525 )
544526
545527 if self .t8n_use_stream :
Original file line number Diff line number Diff line change @@ -98,4 +98,4 @@ class TransitionToolOutput(CamelModel):
9898
9999 alloc : Alloc
100100 result : Result
101- body : Bytes
101+ body : Bytes | None = None
You can’t perform that action at this time.
0 commit comments