Skip to content

Commit

Permalink
remove stale comment
Browse files Browse the repository at this point in the history
Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
  • Loading branch information
xermicus committed Apr 3, 2024
1 parent 5fc2a34 commit 3aba157
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/codegen/events/polkadot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,11 @@ impl EventEmitter for PolkadotEventEmitter<'_> {
// Events that are not anonymous always have themselves as a topic.
// This is static and can be calculated at compile time.
if !event.anonymous {
let topic_hash = self.selector(contract_no);

// First byte is 0 because there is no prefix for the event topic
topics.push(Expression::AllocDynamicBytes {
loc,
ty: Type::Slice(Type::Uint(8).into()),
size: hash_len.clone(),
initializer: Some(topic_hash),
initializer: self.selector(contract_no).into(),
});
};

Expand Down

0 comments on commit 3aba157

Please sign in to comment.