We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6063717 commit b50167aCopy full SHA for b50167a
crates/common/src/utils.rs
@@ -82,8 +82,8 @@ pub fn strip_bytecode_placeholders(bytecode: &BytecodeObject) -> Option<Bytes> {
82
match &bytecode {
83
BytecodeObject::Bytecode(bytes) => Some(bytes.clone()),
84
BytecodeObject::Unlinked(s) => {
85
- // Replace all __$xxx$__ placeholders with 32 zero bytes
86
- let s = (*BYTECODE_PLACEHOLDER_RE).replace_all(s, "00".repeat(40));
+ // Replace all __$xxx$__ placeholders with 20 zero bytes (40 hex chars)
+ let s = (*BYTECODE_PLACEHOLDER_RE).replace_all(s, "00".repeat(20));
87
let bytes = hex::decode(s.as_bytes());
88
Some(bytes.ok()?.into())
89
}
0 commit comments