Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pgherveou committed Jan 16, 2025
1 parent ca3f378 commit 3ca2726
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
14 changes: 7 additions & 7 deletions substrate/frame/revive/fixtures/contracts/to_account_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ pub extern "C" fn deploy() {}
#[no_mangle]
#[polkavm_derive::polkavm_export]
pub extern "C" fn call() {
input!(
address: &[u8; 20],
expected_account_id: &[u8; 32],
);
input!(
address: &[u8; 20],
expected_account_id: &[u8; 32],
);

let mut account_id = [0u8; 32];
api::to_account_id(address, &mut account_id);
let mut account_id = [0u8; 32];
api::to_account_id(address, &mut account_id);

assert!(&account_id == expected_account_id);
assert!(&account_id == expected_account_id);
}
8 changes: 0 additions & 8 deletions substrate/frame/revive/src/debug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,6 @@ impl Tracer {
}
}

/// Returns `true` if some traces have been collected.
pub fn has_traces(&self) -> bool {
match self {
Tracer::CallTracer(tracer) => !tracer.traces.is_empty(),
_ => false,
}
}

/// Takes the traces collected by the tracer and resets them.
pub fn collect_traces(&mut self) -> Traces {
match self {
Expand Down

0 comments on commit 3ca2726

Please sign in to comment.