Skip to content

Commit

Permalink
Merge branch 'main' into remove_config_file_check
Browse files Browse the repository at this point in the history
  • Loading branch information
ColoCarletti authored Aug 20, 2024
2 parents a974275 + 0d77588 commit 438d436
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/lib/contract_verifier/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,9 @@ impl ContractVerifier {
let bytecode_str = artifact["bytecode"]
.as_str()
.ok_or(ContractVerifierError::InternalError)?;
let bytecode = hex::decode(bytecode_str).unwrap();
let bytecode_without_prefix =
bytecode_str.strip_prefix("0x").unwrap_or(bytecode_str);
let bytecode = hex::decode(bytecode_without_prefix).unwrap();
return Ok(CompilationArtifacts {
abi: artifact["abi"].clone(),
bytecode,
Expand Down

0 comments on commit 438d436

Please sign in to comment.