Skip to content

Commit

Permalink
HACK for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
hdevalence committed May 5, 2024
1 parent 9ce04c4 commit 90c50ac
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion crates/bin/pcli/src/command/tx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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")?
Expand All @@ -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,
Expand Down

0 comments on commit 90c50ac

Please sign in to comment.