Skip to content

Commit

Permalink
replace account_id on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gianfra-t committed Jun 6, 2024
1 parent 3f2869f commit d2662c6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion clients/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ compile_error!("You need to select at least one of the metadata features");
// well.

#[cfg_attr(
feature = "parachain-metadata-foucoco",
feature = "standalone-metadata",
subxt(
runtime_metadata_path = "metadata-standalone.scale",
derive_for_all_types = "Clone, PartialEq, Eq",
Expand Down
5 changes: 2 additions & 3 deletions clients/vault/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use futures::Future;
use sysinfo::{System, SystemExt};
use tokio::sync::RwLock;
use tokio_stream::StreamExt;
use sp_runtime::AccountId32 as AccountId;

use runtime::{SpacewalkSigner, DEFAULT_SPEC_NAME};
use service::{
Expand Down Expand Up @@ -131,7 +132,7 @@ async fn start() -> Result<(), ServiceError<Error>> {
// This file is auto-removed when `drop`ped.
let _pidfile = PidFile::create(
&String::from(DEFAULT_SPEC_NAME),
signer.read().await.account_id(),
&AccountId::new(signer.read().await.account_id().0),
&mut sys,
)?;

Expand Down Expand Up @@ -163,8 +164,6 @@ async fn main() {
mod tests {
use std::{thread, time::Duration};

use runtime::AccountId;

use super::*;

#[tokio::test]
Expand Down
3 changes: 2 additions & 1 deletion clients/vault/src/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ use std::{
str::FromStr,
};

use runtime::AccountId;
//use runtime::AccountId;
use sp_runtime::AccountId32 as AccountId;
use service::Error as ServiceError;
use sysinfo::{Pid, PidExt, ProcessExt, System, SystemExt};

Expand Down

0 comments on commit d2662c6

Please sign in to comment.