From 745301432f55bbff7eea29149eb28ccde78b4618 Mon Sep 17 00:00:00 2001 From: "kriko.eth" <43150707+coreggon11@users.noreply.github.com> Date: Tue, 7 Dec 2021 10:49:00 +0100 Subject: [PATCH] fixes in documentation --- docs/docs/smart-contracts/PSP22/Extensions/metadata.md | 2 +- docs/docs/smart-contracts/PSP22/Extensions/wrapper.md | 2 +- docs/docs/smart-contracts/PSP22/Utils/token-timelock.md | 2 +- docs/docs/smart-contracts/access-control.md | 2 +- docs/docs/smart-contracts/ownable.md | 2 +- docs/docs/smart-contracts/reentrancy-guard.md | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/docs/smart-contracts/PSP22/Extensions/metadata.md b/docs/docs/smart-contracts/PSP22/Extensions/metadata.md index a7b238e72..ea245dbd3 100644 --- a/docs/docs/smart-contracts/PSP22/Extensions/metadata.md +++ b/docs/docs/smart-contracts/PSP22/Extensions/metadata.md @@ -3,7 +3,7 @@ sidebar_position: 1 title: PSP22 Metadata --- -This example shows how you can reuse the implementation of [PSP22](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/token/psp22) token with the [PSP22Metadata](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/token/psp22/extensions/Metadata.rs) extension. +This example shows how you can reuse the implementation of [PSP22](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/token/psp22) token with the [PSP22Metadata](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/token/psp22/src/extensions/metadata.rs) extension. ## Step 1: Add imports diff --git a/docs/docs/smart-contracts/PSP22/Extensions/wrapper.md b/docs/docs/smart-contracts/PSP22/Extensions/wrapper.md index d620816ec..b25c77492 100644 --- a/docs/docs/smart-contracts/PSP22/Extensions/wrapper.md +++ b/docs/docs/smart-contracts/PSP22/Extensions/wrapper.md @@ -3,7 +3,7 @@ sidebar_position: 4 title: PSP22 Wrapper --- -This example shows how you can reuse the implementation of [PSP22](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/token/psp22) token with [PSP22 Wrapper](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/token/psp22/extensions/wrapper) extension, which allows you to wrap your `PSP22` token in a `PSP22Wrapper` token which can be used for example for governance. +This example shows how you can reuse the implementation of [PSP22](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/token/psp22) token with [PSP22 Wrapper](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/token/psp22/src/extensions/wrapper.rs) extension, which allows you to wrap your `PSP22` token in a `PSP22Wrapper` token which can be used for example for governance. ## Step 1: Include dependencies and add imports diff --git a/docs/docs/smart-contracts/PSP22/Utils/token-timelock.md b/docs/docs/smart-contracts/PSP22/Utils/token-timelock.md index ee057fdab..5f894625f 100644 --- a/docs/docs/smart-contracts/PSP22/Utils/token-timelock.md +++ b/docs/docs/smart-contracts/PSP22/Utils/token-timelock.md @@ -3,7 +3,7 @@ sidebar_position: 1 title: PSP22 Token Timelock --- -This example shows how you can reuse the implementation of [PSP22 Token Timelock](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/token/psp22/utils/token_timelock) utility for [PSP22](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/token/psp22). This contract will lock user's `PSP22` tokens until the time specified, when they can withdraw them. +This example shows how you can reuse the implementation of [PSP22 Token Timelock](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/token/psp22/src/utils/token_timelock.rs) utility for [PSP22](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/token/psp22). This contract will lock user's `PSP22` tokens until the time specified, when they can withdraw them. ## Step 1: Include dependencies and add imports diff --git a/docs/docs/smart-contracts/access-control.md b/docs/docs/smart-contracts/access-control.md index 9e8a1562e..904d02683 100644 --- a/docs/docs/smart-contracts/access-control.md +++ b/docs/docs/smart-contracts/access-control.md @@ -129,4 +129,4 @@ pub mod my_access_control { } ``` -You can check the example of usage of [Access Control](https://github.com/Supercolony-net/openbrush-contracts/tree/main/examples/access-control). \ No newline at end of file +You can check the example of usage of [Access Control](https://github.com/Supercolony-net/openbrush-contracts/tree/main/examples/access_control). \ No newline at end of file diff --git a/docs/docs/smart-contracts/ownable.md b/docs/docs/smart-contracts/ownable.md index 67115bba9..b0b448eab 100644 --- a/docs/docs/smart-contracts/ownable.md +++ b/docs/docs/smart-contracts/ownable.md @@ -66,7 +66,7 @@ Declare storage struct and declare the field related to `OwnableStorage` trait. #[derive(Default, OwnableStorage)] pub struct MyOwnable { #[OwnableStorageField] - ownale: OwnableData, + ownable: OwnableData, } ``` diff --git a/docs/docs/smart-contracts/reentrancy-guard.md b/docs/docs/smart-contracts/reentrancy-guard.md index bd522cd8a..5daa942d9 100644 --- a/docs/docs/smart-contracts/reentrancy-guard.md +++ b/docs/docs/smart-contracts/reentrancy-guard.md @@ -237,6 +237,6 @@ std = [ ## Testing -For testing, you can run the [integration test](https://github.com/Supercolony-net/openbrush-contracts/blob/main/tests/reentrancy_guard.tests.ts), or you can deploy both +For testing, you can run the [integration test](https://github.com/Supercolony-net/openbrush-contracts/blob/main/tests/reentrancy-guard.tests.ts), or you can deploy both contracts and call `call_flip_on_me` on `MyFlipper` account providing account id of `FlipOnMe` contract as an argument.