Skip to content

Commit

Permalink
docs spelling #2
Browse files Browse the repository at this point in the history
  • Loading branch information
coreggon11 committed Oct 29, 2021
1 parent 78200eb commit 2db82bf
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This example shows how you can reuse the implementation of [PSP1155](https://git

## How to use this extension

In order for your smart contract to use this extension, you only need to implement the `PSP1155Burnable` trait in your `PSP1155` smart contract. Add import for `psp1155::extensions::burnable::*`, inherit the implementation for `PSP1155Burnable` trait, where you can also customize (override) the original functions from `PSP1155Burnable`.
For your smart contract to use this extension, you only need to implement the `PSP1155Burnable` trait in your `PSP1155` smart contract. Add import for `psp1155::extensions::burnable::*`, inherit the implementation for `PSP1155Burnable` trait, where you can also customize (override) the original functions from `PSP1155Burnable`.

```rust
use psp1155::extensions::burnable::*;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub mod my_psp1155 {

## Step 2: Define storage

Declare storage struct and declare the field related to `PSP1155MetadataStorage` trait in addition to your `PSP1155Storage` field. Then you need to derive `PSP1155MetadataStorage` trait and mark the corresponding field with `#[PSP1155MetadataStorageField]` attribute. Deriving this trait allows you to reuse the `PSP1155Metadata` extension in your `PSP1155` implementation.
Declare storage struct and declare the field related to the `PSP1155MetadataStorage` trait in addition to your `PSP1155Storage` field. Then you need to derive the `PSP1155MetadataStorage` trait and mark the corresponding field with the `#[PSP1155MetadataStorageField]` attribute. Deriving this trait allows you to reuse the `PSP1155Metadata` extension in your `PSP1155` implementation.

```rust
#[derive(Default, PSP1155Storage, PSP1155MetadataStorage)]
Expand All @@ -32,7 +32,7 @@ pub struct MyPSP1155 {

## Step 3: Inherit logic

Inherit implementation of `PSP1155Metadata` trait. You can customize (override) methods in this `impl` block.
Inherit implementation of the `PSP1155Metadata` trait. You can customize (override) methods in this `impl` block.

```rust
impl PSP1155Metadata for MyPSP1155 {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This example shows how you can reuse the implementation of [PSP1155](https://git

## How to use this extension

In order for your smart contract to use this extension, you only need to implement the `PSP1155Mintable` trait in your `PSP1155` smart contract. Add import for `psp1155::extensions::mintable::*`, inherit the implementation for `PSP1155Mintable` trait, where you can also customize (override) the original functions from `PSP1155Mintable`.
For your smart contract to use this extension, you only need to implement the `PSP1155Mintable` trait in your `PSP1155` smart contract. Add import for `psp1155::extensions::mintable::*`, inherit the implementation for `PSP1155Mintable` trait, where you can also customize (override) the original functions from `PSP1155Mintable`.

```rust
use psp1155::extensions::mintable::*;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This example shows how you can reuse the implementation of [PSP721](https://gith

## How to use this extension

In order for your smart contract to use this extension, you only need to implement the `PSP721Burnable` trait in your `PSP721` smart contract. Add import for `psp721::extensions::burnable::*`, inherit the implementation for `PSP721Burnable` trait, where you can also customize (override) the original functions from `PSP721Burnable`.
For your smart contract to use this extension, you only need to implement the `PSP721Burnable` trait in your `PSP721` smart contract. Add import for `psp721::extensions::burnable::*`, inherit the implementation for `PSP721Burnable` trait, where you can also customize (override) the original functions from `PSP721Burnable`.

```rust
use psp721::extensions::burnable::*;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This example shows how you can reuse the implementation of [PSP721](https://gith

## How to use this extension

In order for your smart contract to use this extension, you only need to implement the `PSP721Mintable` trait in your `PSP721` smart contract. Add import for `psp721::extensions::mintable::*`, inherit the implementation for `PSP721Mintable` trait, where you can also customize (override) the original functions from `PSP721Mintable`.
For your smart contract to use this extension, you only need to implement the `PSP721Mintable` trait in your `PSP721` smart contract. Add import for `psp721::extensions::mintable::*`, inherit the implementation for `PSP721Mintable` trait, where you can also customize (override) the original functions from `PSP721Mintable`.

```rust
use psp721::extensions::mintable::*;
Expand Down

0 comments on commit 2db82bf

Please sign in to comment.