Skip to content

Commit ef38d75

Browse files
committed
fix: shorten bytecode output in unknown deployed bytecode warning
1 parent e20e8f6 commit ef38d75

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/halmos/sevm.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1703,7 +1703,9 @@ def try_resolve_contract_info(
17031703
contract_name, filename, source_map = self._try_resolve_proxy_info(contract)
17041704

17051705
if contract_name is None:
1706-
warn(f"unknown deployed bytecode: {hexify(bytecode.unwrap())}")
1706+
warn(
1707+
f"unknown deployed bytecode: {hexify(bytecode[:32].unwrap())}... ({byte_length(bytecode)} bytes total)"
1708+
)
17071709

17081710
contract.contract_name = contract_name
17091711
contract.filename = filename

0 commit comments

Comments
 (0)