pendzl_contracts 1.0.2

Reusable implementations of contracts and traits for interaction with them.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright (c) 2024 C Forge. All Rights Reserved.
// SPDX-License-Identifier: MIT
use ink::primitives::AccountId;

use crate::token::psp34::{Id, PSP34Error, PSP34Internal};

pub trait PSP34MintableDefaultImpl: PSP34Internal {
    fn mint_default_impl(
        &mut self,
        account: AccountId,
        id: Id,
    ) -> Result<(), PSP34Error> {
        self._mint_to(&account, &id)
    }
}