Skip to content

Commit

Permalink
Renamed Unknown error to Custom
Browse files Browse the repository at this point in the history
  • Loading branch information
xgreenx committed Jul 1, 2021
1 parent af6c0cb commit 4564cf1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions PSPs/psp-17.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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<String>;
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 4564cf1

Please sign in to comment.