Skip to content

Commit

Permalink
Fix evm-tracing init block code
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinonard committed Aug 5, 2024
1 parent e1a80f2 commit a091a95
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions vendor/rpc/debug/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,8 @@ where
// This was fine before pallet-message-queue because the XCM messages
// were processed by the "setValidationData" inherent call and not on an
// "on_initialize" hook, which runs before enabling XCM tracing
api.initialize_block(parent_block_hash, &header)
#[allow(deprecated)]
api.initialize_block_before_version_5(parent_block_hash, &header)
.map_err(|e| internal_err(format!("Runtime api access error: {:?}", e)))?;

#[allow(deprecated)]
Expand Down Expand Up @@ -578,7 +579,8 @@ where
// This was fine before pallet-message-queue because the XCM messages
// were processed by the "setValidationData" inherent call and not on an
// "on_initialize" hook, which runs before enabling XCM tracing
api.initialize_block(parent_block_hash, &header)
#[allow(deprecated)]
api.initialize_block_before_version_5(parent_block_hash, &header)
.map_err(|e| {
internal_err(format!("Runtime api access error: {:?}", e))
})?;
Expand Down
3 changes: 2 additions & 1 deletion vendor/rpc/trace/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,8 @@ where
// This was fine before pallet-message-queue because the XCM messages
// were processed by the "setValidationData" inherent call and not on an
// "on_initialize" hook, which runs before enabling XCM tracing
api.initialize_block(substrate_parent_hash, &block_header)
#[allow(deprecated)]
api.initialize_block_before_version_5(substrate_parent_hash, &block_header)
.map_err(|e| format!("Runtime api access error: {:?}", e))?;

#[allow(deprecated)]
Expand Down

0 comments on commit a091a95

Please sign in to comment.