Skip to content

Commit

Permalink
Test some topics
Browse files Browse the repository at this point in the history
  • Loading branch information
pgherveou committed Sep 6, 2024
1 parent d13a8bb commit e72a4af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use uapi::{HostFn, HostFnImpl as api};
#[polkavm_derive::polkavm_export]
pub extern "C" fn deploy() {
let buffer = [1u8, 2, 3, 4];
let topics = [[0u8; 32]; 0];
let topics = [[42u8; 32]; 1];
api::deposit_event(&topics, &buffer);
api::return_value(uapi::ReturnFlags::empty(), &buffer);
}
Expand Down
2 changes: 1 addition & 1 deletion substrate/frame/revive/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ mod run_tests {
contract: addr,
data: vec![1, 2, 3, 4]
}),
topics: vec![],
topics: vec![H256::repeat_byte(42)],
},
EventRecord {
phase: Phase::Initialization,
Expand Down

0 comments on commit e72a4af

Please sign in to comment.