Skip to content

Commit f939865

Browse files
committed
Added null check on registry in base encoder
1 parent abceb18 commit f939865

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

eth_abi/codec.py

+3
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030

3131
class BaseABICodecEncoder():
3232
def __init__(self, registry):
33+
if registry is None:
34+
raise ValueError("`registry` may not be None")
35+
3336
self._registry = registry
3437

3538
def encode_single(self, typ: TypeStr, arg: Any) -> bytes:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from eth_abi.codec import (
2+
BaseABICodecEncoder,
3+
)
4+

0 commit comments

Comments
 (0)