Skip to content

Commit

Permalink
fix rust code
Browse files Browse the repository at this point in the history
  • Loading branch information
hdevalence committed Feb 10, 2025
1 parent 8ac1b42 commit cf0de6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tools/compiler/src/processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ fn process_chain_config(chain_config: ChainConfig) -> AppResult<Registry> {
let mut symbol_map: HashMap<String, Vec<String>> = HashMap::new();

// Collect all symbols and their base denoms
for (_, metadata) in &registry.asset_by_id {
for metadata in registry.asset_by_id.values() {
let symbol = extract_symbol(metadata)?;
let base_denom = metadata.base_denom().denom.clone();
symbol_map.entry(symbol).or_default().push(base_denom);
Expand Down
3 changes: 3 additions & 0 deletions tools/compiler/tests/test_processor.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use std::collections::HashMap;

use penumbra_asset::asset::Metadata;
use penumbra_registry::parser::IbcInput;
use penumbra_registry::processor::{base64_id, transport_metadata_along_channel, Registry};
Expand Down Expand Up @@ -29,6 +31,7 @@ fn test_transport_metadata_along_channel() {
cosmos_registry_dir: "love-124".to_string(),
display_name: "Strangelove".to_string(),
images: vec![],
symbol_overrides: HashMap::new(),
};

let input_json = r#"
Expand Down

0 comments on commit cf0de6f

Please sign in to comment.