Skip to content

Commit

Permalink
Merge pull request #58 from AbstractSDK/fix-issue-57
Browse files Browse the repository at this point in the history
Removed useless test
  • Loading branch information
JakeHartnell authored Jan 16, 2024
2 parents 33bd9ab + fee5d64 commit 4919653
Showing 1 changed file with 0 additions and 52 deletions.
52 changes: 0 additions & 52 deletions packages/cw-orch-polytone/src/deploy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,55 +91,3 @@ impl<Chain: CwEnv> Polytone<Chain> {
Polytone { note, voice, proxy }
}
}

#[cfg(test)]
pub mod test {
use anyhow::Result as AnyResult;
use cw_orch::{
deploy::Deploy,
prelude::{
networks::{JUNO_1, UNI_6},
ContractInstance, DaemonBuilder,
},
tokio::runtime::Runtime,
};

use crate::Polytone;

/// This is a dummy mnemonic to have the daemon initialized properly
pub const TEST_MNEMONIC: &str = "clip hire initial neck maid actor venue client foam budget lock catalog sweet steak waste crater broccoli pipe steak sister coyote moment obvious choose";

#[test]
pub fn mainnet_test() -> AnyResult<()> {
let rt = Runtime::new()?;
let chain = DaemonBuilder::default()
.chain(JUNO_1)
.handle(rt.handle())
.mnemonic(TEST_MNEMONIC)
.build()?;

let polytone = Polytone::load_from(chain)?;
polytone.note.code_id()?;
polytone.voice.code_id()?;
polytone.proxy.code_id()?;

Ok(())
}

#[test]
pub fn testnet_test() -> AnyResult<()> {
let rt = Runtime::new()?;
let chain = DaemonBuilder::default()
.chain(UNI_6)
.handle(rt.handle())
.mnemonic(TEST_MNEMONIC)
.build()?;

let polytone = Polytone::load_from(chain)?;
polytone.note.code_id()?;
polytone.voice.code_id()?;
polytone.proxy.code_id()?;

Ok(())
}
}

0 comments on commit 4919653

Please sign in to comment.