Skip to content

Commit

Permalink
Update 06-first-functions.md (#2072)
Browse files Browse the repository at this point in the history
Co-authored-by: Shawn Tabrizi <[email protected]>
  • Loading branch information
juandesouza and shawntabrizi authored Aug 28, 2024
1 parent 4c232f4 commit ec898ee
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ With errors and events out of the way, it's time to write the core logic for cre
// retaining uniqueness.
let unique_payload = (
random,
frame_system::Pallet::<T>::extrinsic_index().unwrap_or_default(),frame_system::Pallet::<T>::block_number(),
frame_system::Pallet::<T>::extrinsic_index().unwrap_or_default(),
frame_system::Pallet::<T>::block_number(),
);
// Turns into a byte array
Expand Down Expand Up @@ -213,4 +214,4 @@ With errors and events out of the way, it's time to write the core logic for cre
cargo build --package collectibles
```
Your code should now compile without any warnings.
Your code should now compile without any warnings.

0 comments on commit ec898ee

Please sign in to comment.