Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Gianmarco Fraccaroli committed Feb 7, 2023
1 parent e2892f7 commit 2793ed0
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions apps/src/lib/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1643,6 +1643,7 @@ pub mod args {
const DATA_PATH: Arg<PathBuf> = arg("data-path");
const DECRYPT: ArgFlag = flag("decrypt");
const DONT_ARCHIVE: ArgFlag = flag("dont-archive");
const DUMP_TX: ArgFlag = flag("dump-tx");
const DRY_RUN_TX: ArgFlag = flag("dry-run");
const OFFLINE_TX: ArgFlag = flag("offline-tx");
const EPOCH: ArgOpt<Epoch> = arg_opt("epoch");
Expand Down
4 changes: 2 additions & 2 deletions apps/src/lib/client/signing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use borsh::BorshSerialize;
use namada::ledger::parameters::storage as parameter_storage;
use namada::proto::Tx;
use namada::types::address::{Address, ImplicitAddress};
use namada::types::hash::Hash;

use namada::types::key::*;
use namada::types::storage::Epoch;
use namada::types::token;
Expand Down Expand Up @@ -244,7 +244,7 @@ pub async fn sign_tx_multisignature(
}
};

let epoch = rpc::query_epoch(args::Query {
let epoch = rpc::query_and_print_epoch(args::Query {
ledger_address: args.ledger_address.clone(),
})
.await;
Expand Down
6 changes: 4 additions & 2 deletions tests/src/vm_host_env/tx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ impl TestTxEnv {
index: u64,
) {
let storage_key = key::pk_key(address, index);
self.storage
self.wl_storage
.storage
.write(&storage_key, public_key.try_to_vec().unwrap())
.unwrap();
}
Expand All @@ -201,7 +202,8 @@ impl TestTxEnv {
threshold: u64,
) {
let storage_key = key::threshold_key(address);
self.storage
self.wl_storage
.storage
.write(&storage_key, threshold.try_to_vec().unwrap())
.unwrap();
}
Expand Down
1 change: 0 additions & 1 deletion tx_prelude/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#![deny(rustdoc::private_intra_doc_links)]

pub mod account;
pub mod governance;
pub mod ibc;
pub mod key;
pub mod proof_of_stake;
Expand Down
2 changes: 1 addition & 1 deletion tx_prelude/src/proof_of_stake.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! Proof of Stake system integration with functions for transactions
use namada_core::types::key::common;

use namada_core::types::transaction::{InitAccount, InitValidator};
use namada_core::types::{key, token};
pub use namada_proof_of_stake::parameters::PosParams;
Expand Down
5 changes: 2 additions & 3 deletions wasm/wasm_source/src/vp_user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,11 @@ fn validate_tx(

#[cfg(test)]
mod tests {
use address::testing::arb_non_internal_address;
use namada::ledger::pos::{GenesisValidator, PosParams};
use namada::types::storage::Epoch;
use std::collections::HashMap;

use address::testing::arb_non_internal_address;
use namada::ledger::pos::{GenesisValidator, PosParams};
use namada::types::storage::Epoch;
// Use this as `#[test]` annotation to enable logging
use namada_tests::log::test;
use namada_tests::native_vp::pos::init_pos;
Expand Down

0 comments on commit 2793ed0

Please sign in to comment.