From 4564cf18afcaaebcd607aab2510282b47fefd111 Mon Sep 17 00:00:00 2001 From: xgreenx Date: Thu, 1 Jul 2021 10:00:18 +0300 Subject: [PATCH] Renamed Unknown error to Custom --- PSPs/psp-17.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/PSPs/psp-17.md b/PSPs/psp-17.md index a96f7aa..70c0c24 100644 --- a/PSPs/psp-17.md +++ b/PSPs/psp-17.md @@ -45,7 +45,7 @@ Another difference is that it has `PSP17Receiver` trait and `on_received` method ### Traits ```rust -/// PSP17 is a trait of Fungible Token Standard +/// PSP17 is a trait of Fungible Token Standard. pub trait PSP17 { /// Returns the total token supply. fn total_supply(&self) -> Balance; @@ -113,7 +113,7 @@ pub trait PSP17 { fn decrease_allowance(&mut self, spender: AccountId, delta_value: Balance); } -/// PSP17Metadata is an optional trait of metadata for Fungible Token Standard +/// PSP17Metadata is an optional trait of metadata for Fungible Token Standard. pub trait PSP17Metadata { /// Returns the token name. fn name(&self) -> Option; @@ -183,8 +183,8 @@ This panic can contain one of the following messages: ```rust pub enum PSP17Error { - /// Unknown error type for cases if writer of traits added own restrictions - Unknown(String), + /// Custom error type for cases if writer of traits added own restrictions + Custom(String), /// Returned if not enough balance to fulfill a request is available. InsufficientBalance, /// Returned if not enough allowance to fulfill a request is available.