Skip to content

Commit 1c92ba8

Browse files
committed
minor fixes
1 parent 490e5a6 commit 1c92ba8

File tree

3 files changed

+3
-14
lines changed

3 files changed

+3
-14
lines changed

Cargo.lock

Lines changed: 0 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/env/src/event.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ pub trait Event: scale::Encode {
205205
/// It can be automatically calculated or manually specified.
206206
///
207207
/// Usually this is calculated using the `#[derive(ink::Event)]` derive, which by
208-
/// default calculates this as `blake2b("Event(field1_type,field2_type)"
208+
/// default calculates this as `blake2b("Event(field1_type,field2_type)"`
209209
const SIGNATURE_TOPIC: core::option::Option<[u8; 32]>;
210210

211211
/// Guides event topic serialization using the given topics builder.

crates/ink/macro/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1423,6 +1423,7 @@ synstructure::decl_derive!(
14231423
/// 32 byte hash string of the custom signature topic.
14241424
///
14251425
/// Generates custom signature topic
1426+
/// ```
14261427
/// #[derive(ink::Event, scale::Encode)]
14271428
/// #[ink(signature_topic = "1111111111111111111111111111111111111111111111111111111111111111")]
14281429
/// pub struct MyCustomSignatureEvent {
@@ -1432,7 +1433,7 @@ synstructure::decl_derive!(
14321433
///
14331434
/// assert_eq!(Some([17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17]),
14341435
/// <MyCustomSignatureEvent as ink::env::Event>::SIGNATURE_TOPIC)
1435-
///
1436+
///```
14361437
/// ## Anonymous Events
14371438
///
14381439
/// If the event is annotated with `#[ink(anonymous)]` then no signature topic is generated.

0 commit comments

Comments
 (0)