Skip to content

Commit

Permalink
Textual improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
cmichi committed Jan 24, 2024
1 parent 45e9af3 commit 5605448
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
13 changes: 8 additions & 5 deletions versioned_docs/version-5.x/basics/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,14 @@ So for our `Transferred` example it will be:
```
blake2b("Transferred(Option<AccountId>,Option<AccountId>,u128)")`
```
> Important caveat: because the *name* of the field type is used, refactoring an event
> definition to use a type alias or a fully qualified type will change the signature topic, even
> though the underlying type is the same. Two otherwise identical definitions of an event with the
> same name and same field types but different field type names will have different signature
> topics.

:::caution
Important caveat: because the *name* of the field type is used, refactoring an event
definition to use a type alias or a fully qualified type will change the signature topic, even
though the underlying type is the same. Two otherwise identical definitions of an event with the
same name and same field types but different field type names will have different signature
topics.
:::

When decoding events emitted from a contract, signature topics are now required to determine which
type of event to decode into.
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-5.x/testing/testing-with-live-state.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Testing with Live State
title: Testing with Chain Snapshot
hide_title: true
slug: /basics/contract-testing/with-live-state
slug: /basics/contract-testing/chain-snapshot
---

<img src="/img/title/testing1.svg" className="titlePic" />
Expand Down

0 comments on commit 5605448

Please sign in to comment.