Skip to content

Commit

Permalink
Add request details for solidity standard-json (#689)
Browse files Browse the repository at this point in the history
  • Loading branch information
rimrakhimov authored Nov 27, 2023
1 parent 5c8b63c commit 6541a54
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use smart_contract_verifier::{
SolidityClient, SolidityCompiler, VerificationError,
};
use smart_contract_verifier_proto::blockscout::smart_contract_verifier::v2::{
LookupMethodsRequest, LookupMethodsResponse,
BytecodeType, LookupMethodsRequest, LookupMethodsResponse,
};
use std::{str::FromStr, sync::Arc};
use tokio::sync::Semaphore;
Expand Down Expand Up @@ -164,6 +164,16 @@ impl SolidityVerifier for SolidityVerifierService {
contract_address = contract_address,
"Solidity standard-json verification request received"
);
tracing::info!(
request_id = request_id.to_string(),
bytecode = request.bytecode,
bytecode_type = BytecodeType::from_i32(request.bytecode_type)
.unwrap()
.as_str_name(),
compiler_version = request.compiler_version,
input = request.input,
"Request details"
);

let verification_request = {
let request: Result<_, StandardJsonParseError> = request.try_into();
Expand Down

0 comments on commit 6541a54

Please sign in to comment.