Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
pgherveou committed Feb 5, 2024
1 parent 2d7833c commit 6e03472
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 351 deletions.
2 changes: 1 addition & 1 deletion drink-cli/src/app_state/print.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use drink::contract_api::decode_debug_buffer;
use drink::contracts_api::decode_debug_buffer;
use pallet_contracts::ContractResult;
use ratatui::{
style::{Color, Modifier, Style},
Expand Down
2 changes: 1 addition & 1 deletion drink/src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
//! `drink` with any runtime that implements the `Runtime` trait.
pub mod minimal;
pub mod pallet_contracts_debugging;
pub use frame_metadata::RuntimeMetadataPrefixed;
pub use minimal::MinimalRuntime;
pub mod pallet_contracts_debugging;

/// The type of an account identifier.
pub type AccountIdFor<R> = <R as frame_system::Config>::AccountId;
Expand Down
2 changes: 1 addition & 1 deletion drink/src/sandbox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
mod sandbox_config;
pub use sandbox_config::SandboxConfig;
pub mod balance_api;
pub mod contract_api;
pub mod contracts_api;
pub mod runtime_api;
pub mod system_api;
pub mod timestamp_api;
Expand Down
6 changes: 3 additions & 3 deletions drink/src/sandbox/balance_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
use frame_support::{sp_runtime::DispatchError, traits::fungible::Mutate};

use super::Sandbox;
use crate::{runtime::AccountIdFor, BalanceOf};
use crate::{runtime::AccountIdFor, BalanceOf, SandboxConfig};

impl<Config: crate::SandboxConfig> Sandbox<Config>
impl<Config: SandboxConfig> Sandbox<Config>
where
Config::Runtime: crate::pallet_balances::Config,
Config::Runtime: pallet_balances::Config,
{
/// Mint tokens to an account.
///
Expand Down
309 changes: 0 additions & 309 deletions drink/src/sandbox/contract_api.rs

This file was deleted.

Loading

0 comments on commit 6e03472

Please sign in to comment.