Skip to content

Commit

Permalink
Update addresses in osmo test.
Browse files Browse the repository at this point in the history
  • Loading branch information
dowlandaiello committed Jul 1, 2024
1 parent 21de788 commit 696ea78
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions examples/osmosis.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
use localic_utils::{ConfigChainBuilder, TestContextBuilder, OSMOSIS_CHAIN_NAME};
use std::error::Error;

const ACC_0_ADDR: &str = "osmo1hj5fveer5cjtn4wd6wstzugjfdxzl0xpwhpz63";

/// Demonstrates using localic-utils for neutron.
fn main() -> Result<(), Box<dyn Error>> {
env_logger::init();
Expand All @@ -19,13 +21,12 @@ fn main() -> Result<(), Box<dyn Error>> {
.with_chain_name(OSMOSIS_CHAIN_NAME)
.with_subdenom("bruhtoken")
.send()?;
let bruhtoken =
ctx.get_tokenfactory_denom("osmo1kuf2kxwuv2p8k3gnpja7mzf05zvep0cysqyf2a", "bruhtoken");
let bruhtoken = ctx.get_tokenfactory_denom(ACC_0_ADDR, "bruhtoken");
ctx.build_tx_mint_tokenfactory_token()
.with_chain_name(OSMOSIS_CHAIN_NAME)
.with_amount(10000000000000000000)
.with_denom(&bruhtoken)
.with_recipient_addr("osmo1kuf2kxwuv2p8k3gnpja7mzf05zvep0cysqyf2a")
.with_recipient_addr(ACC_0_ADDR)
.send()?;

// Create an osmosis pool
Expand Down

0 comments on commit 696ea78

Please sign in to comment.