From 90c50acd8e6b9ea2130f9639aff256dd68bb1fd3 Mon Sep 17 00:00:00 2001 From: Henry de Valence Date: Sat, 4 May 2024 23:13:17 -0700 Subject: [PATCH] HACK for testing --- crates/bin/pcli/src/command/tx.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/crates/bin/pcli/src/command/tx.rs b/crates/bin/pcli/src/command/tx.rs index ff9f70a649..4897a0881f 100644 --- a/crates/bin/pcli/src/command/tx.rs +++ b/crates/bin/pcli/src/command/tx.rs @@ -22,6 +22,7 @@ use ibc_types::core::{ client::Height as IbcHeight, }; use ibc_types::lightclients::tendermint::client_state::ClientState as TendermintClientState; +use penumbra_fee::GasPrices; use rand_core::OsRng; use regex::Regex; @@ -323,7 +324,7 @@ impl TxCmd { // TODO: use a command line flag to determine the fee token, // and pull the appropriate GasPrices out of this rpc response, // the rest should follow - let gas_prices = app + let mut gas_prices: GasPrices = app .view .as_mut() .context("view service must be initialized")? @@ -334,6 +335,14 @@ impl TxCmd { .expect("gas prices must be available") .try_into()?; + gas_prices.asset_id = asset::REGISTRY.parse_unit("gm").id(); + gas_prices.block_space_price *= 10; + gas_prices.compact_block_space_price *= 10; + gas_prices.execution_price *= 10; + gas_prices.verification_price *= 10; + + tracing::info!(?gas_prices); + match self { TxCmd::Send { values,