Skip to content

Commit

Permalink
Fix Gnosis chain symbol (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xh3rman authored Jun 26, 2024
1 parent 19b68d2 commit ffff71b
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion crates/primitives/src/asset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ impl Asset {
Chain::Gnosis => Asset {
id: chain.as_asset_id(),
name: "Gnosis Chain".to_string(),
symbol: "GNO".to_string(),
symbol: "xDai".to_string(),
decimals: 18,
asset_type: AssetType::NATIVE,
},
Expand Down Expand Up @@ -255,3 +255,15 @@ impl Asset {
}
}
}

#[cfg(test)]
mod tests {
use super::*;

#[test]
fn test_asset_id() {
let asset = Asset::from_chain(Chain::Gnosis);

assert_eq!(asset.symbol, "xDai");
}
}

0 comments on commit ffff71b

Please sign in to comment.