Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mintbase-near-indexer
2 changes: 1 addition & 1 deletion store/src/burning.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ impl MintbaseStore {
/// where the callback prevents the use of
/// `env::predecessor_account_id()` to determine whether the owner is the
/// method caller.
pub fn burn_triaged(
fn burn_triaged(
&mut self,
token_ids: Vec<U64>,
account_id: AccountId,
Expand Down
43 changes: 20 additions & 23 deletions store/src/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ use mintbase_deps::common::{
NonFungibleContractMetadata,
TokenMetadata,
};
use mintbase_deps::logging::{
log_set_base_uri,
log_set_icon_base64,
};
use mintbase_deps::logging::log_set_icon_base64;
use mintbase_deps::near_sdk::json_types::U64;
use mintbase_deps::near_sdk::{
self,
Expand All @@ -29,25 +26,25 @@ impl NonFungibleContractMetadata for MintbaseStore {
impl MintbaseStore {
// -------------------------- change methods ---------------------------

/// The `base_uri` for the `Store` is the identifier used to look up the
/// `Store` on Arweave. Changing the `base_uri` requires the `Store`
/// owner to be responsible for making sure their `Store` location is
/// maintained by their preferred storage provider.
///
/// Only the `Store` owner may call this function.
#[payable]
pub fn set_base_uri(
&mut self,
base_uri: String,
) {
self.assert_store_owner();
near_assert!(
base_uri.len() <= 100,
"Base URI must be less then 100 chars"
);
log_set_base_uri(&base_uri);
self.metadata.base_uri = Some(base_uri);
}
// /// The `base_uri` for the `Store` is the identifier used to look up the
// /// `Store` on Arweave. Changing the `base_uri` requires the `Store`
// /// owner to be responsible for making sure their `Store` location is
// /// maintained by their preferred storage provider.
// ///
// /// Only the `Store` owner may call this function.
// #[payable]
// pub fn set_base_uri(
// &mut self,
// base_uri: String,
// ) {
// self.assert_store_owner();
// near_assert!(
// base_uri.len() <= 100,
// "Base URI must be less then 100 chars"
// );
// log_set_base_uri(&base_uri);
// self.metadata.base_uri = Some(base_uri);
// }

/// `icon_base64` is best understood as the `Store` logo/icon.
///
Expand Down