Skip to content

Commit

Permalink
chore: tidying up
Browse files Browse the repository at this point in the history
  • Loading branch information
grumbach committed Mar 8, 2023
1 parent 6db3103 commit 0da345d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sn_cli/src/subcommands/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ pub enum WalletSubCommands {
#[clap(long = "save")]
save: Option<PathBuf>,
/// The reason why this DBC is spent
/// (Used for data payments: currently not yet implemented)
/// (Used for data payments among other things: currently not yet implemented)
#[clap(long = "reason")]
reason: Option<DbcReason>,
},
Expand Down
8 changes: 4 additions & 4 deletions sn_interface/src/dbcs/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
// KIND, either express or implied. Please review the Licences for the specific language governing
// permissions and limitations relating to use of the SAFE Network Software.

mod reasons;

pub use reasons::DbcReason;

use sn_dbc::{
rng, Dbc, Error as DbcError, Hash, IndexedSignatureShare, Owner, OwnerOnce, PedersenGens,
RevealedCommitment, RevealedInput, SpentProofContent, SpentProofShare, Token,
Expand All @@ -15,10 +19,6 @@ use sn_dbc::{
use std::{fmt::Debug, result};
use thiserror::Error;

mod reasons;

pub use reasons::DbcReason;

/// Amount of tokens to be owned by the Genesis DBC.
/// At the inception of the Network a total supply of 4,525,524,120 whole tokens will be created.
/// Each whole token can be subdivided 10^9 times,
Expand Down
4 changes: 2 additions & 2 deletions sn_interface/src/dbcs/reasons.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
// KIND, either express or implied. Please review the Licences for the specific language governing
// permissions and limitations relating to use of the SAFE Network Software.

use super::Error;

use serde::{Deserialize, Serialize};
use sn_dbc::Hash;
use xor_name::XorName;

use super::Error;

/// DBC reason for being spent
#[derive(Default, Debug, Copy, Clone, Eq, PartialEq, Serialize, Deserialize)]
pub struct DbcReason(Hash);
Expand Down

0 comments on commit 0da345d

Please sign in to comment.