File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -497,7 +497,7 @@ def decode_ds_note(self, log: dict) -> Optional[ContractLog]:
497
497
"""
498
498
contract_type = self .chain_manager .contracts .get (log ["address" ])
499
499
if contract_type is None :
500
- raise DecodingError (" contract type not available " )
500
+ raise DecodingError (f"ds-note: contract type for { log [ 'address' ] } not found " )
501
501
502
502
# topic 0 encodes selector, the tail must be zeros
503
503
selector , tail = log ["topics" ][0 ][:4 ], log ["topics" ][0 ][4 :]
@@ -510,7 +510,7 @@ def decode_ds_note(self, log: dict) -> Optional[ContractLog]:
510
510
if selector == keccak (text = func .selector )[:4 ]
511
511
)
512
512
except StopIteration :
513
- return None
513
+ raise DecodingError ( f"ds-note: selector ' { selector . hex () } ' not found" )
514
514
515
515
# in versions of ds-note the data field uses either (uint256,bytes) or (bytes) encoding
516
516
# instead of guessing, assume the payload starts right after the selector
You can’t perform that action at this time.
0 commit comments