Skip to content

Commit

Permalink
Merge branch 'fraccaman+brent/fix-burn-function' (#2408)
Browse files Browse the repository at this point in the history
* fraccaman+brent/fix-burn-function:
  trans_token: avoid cyclic dependency
  • Loading branch information
tzemanovic committed Jan 26, 2024
2 parents 993cfd6 + 8951b73 commit 19b8e86
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 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 crates/trans_token/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ namada_core = { path = "../core" }
namada_storage = { path = "../storage" }

[dev-dependencies]
namada_state = { path = "../state", features = ["testing"] }
namada_storage = { path = "../storage", features = ["testing"] }
6 changes: 3 additions & 3 deletions crates/trans_token/src/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,14 +230,14 @@ pub fn denom_to_amount(
#[cfg(test)]
mod testing {
use namada_core::types::{address, token};
use namada_state::testing::TestWlStorage;
use namada_storage::testing::TestStorage;

use super::{burn_tokens, credit_tokens, read_balance, read_total_supply};

#[test]
fn test_burn_native_tokens() {
let mut storage = TestWlStorage::default();
let native_token = storage.storage.native_token.clone();
let mut storage = TestStorage::default();
let native_token = address::nam();

// Get some addresses
let addr1 = address::testing::gen_implicit_address();
Expand Down

0 comments on commit 19b8e86

Please sign in to comment.