From 041157d1b505eb42ae9434a17dcbde3291a364e1 Mon Sep 17 00:00:00 2001 From: Yasir Date: Tue, 19 Mar 2024 16:01:05 +0300 Subject: [PATCH] Make constant file pub --- src/{utils => }/constants.rs | 0 src/inscription/nft.rs | 4 ++-- src/lib.rs | 2 ++ src/utils/mod.rs | 1 - 4 files changed, 4 insertions(+), 3 deletions(-) rename src/{utils => }/constants.rs (100%) diff --git a/src/utils/constants.rs b/src/constants.rs similarity index 100% rename from src/utils/constants.rs rename to src/constants.rs diff --git a/src/inscription/nft.rs b/src/inscription/nft.rs index 884471b..485e1d1 100644 --- a/src/inscription/nft.rs +++ b/src/inscription/nft.rs @@ -14,9 +14,9 @@ use http::HeaderValue; use serde::{Deserialize, Serialize}; use serde_with::serde_as; -use crate::utils::{self, bytes_to_push_bytes, constants}; +use crate::utils::{self, bytes_to_push_bytes}; use crate::wallet::RedeemScriptPubkey; -use crate::{Inscription, InscriptionParseError, OrdError, OrdResult}; +use crate::{constants, Inscription, InscriptionParseError, OrdError, OrdResult}; /// Represents an arbitrary Ordinal inscription. We're "unofficially" referring to this as an NFT /// (e.g., like an ERC721 token). Ordinal inscriptions allow for the embedding of data directly diff --git a/src/lib.rs b/src/lib.rs index 010dead..7789d9c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -35,3 +35,5 @@ pub use wallet::{ CreateCommitTransaction, CreateCommitTransactionArgs, ExternalSigner, OrdParser, OrdTransactionBuilder, RevealTransactionArgs, Utxo, Wallet, WalletType, }; + +pub mod constants; diff --git a/src/utils/mod.rs b/src/utils/mod.rs index 7d8fe74..129a977 100644 --- a/src/utils/mod.rs +++ b/src/utils/mod.rs @@ -1,4 +1,3 @@ -pub mod constants; mod push_bytes; #[cfg(test)] pub mod test_utils;