Skip to content

Commit

Permalink
Remove sender and add nonce to SRC15 event
Browse files Browse the repository at this point in the history
  • Loading branch information
bitzoic committed Dec 2, 2024
1 parent d5d29a6 commit f7e7f22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/src-15-offchain-asset-metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ There SHALL be the following fields in the `SRC15MetadataEvent` struct:

* `asset`: The `asset` field SHALL be used for the corresponding `AssetId` for the metadata.
* `metadata`: The `metadata` field SHALL be used for the corresponding `Metadata` which represents the metadata of the asset.
* `sender`: The `sender` field SHALL be used for the corresponding `Identity` which made the function call that has emitted the metadata of the asset.
* `nonce`: The nonce of the metadata. This SHALL begin at zero and increment by one upon every emission such that each emission has a unique nonce.

Example:

```sway
pub struct SRC15MetadataEvent {
pub asset: AssetId,
pub metadata: Metadata,
pub sender: Identity,
pub nonce: u64,
}
```

Expand Down

0 comments on commit f7e7f22

Please sign in to comment.