Skip to content

Commit 7860253

Browse files
marioevzlightclient
authored andcommitted
Fix type check
1 parent c918f4c commit 7860253

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/evm_transition_tool/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,11 @@ def calc_withdrawals_root(self, withdrawals: Any, fork: str) -> str:
115115
"Unable to calculate withdrawals root: "
116116
+ "no value returned from transition tool"
117117
)
118-
if withdrawals_root is not str:
118+
if type(withdrawals_root) is not str:
119119
raise Exception(
120120
"Unable to calculate withdrawals root: "
121-
+ "incorrect type returned from transition tool"
121+
+ "incorrect type returned from transition tool: "
122+
+ f"{withdrawals_root}"
122123
)
123124
return withdrawals_root
124125

0 commit comments

Comments
 (0)