Skip to content

Commit

Permalink
fix typo in ED25519 dex pubkey const
Browse files Browse the repository at this point in the history
  • Loading branch information
shamardy committed Oct 31, 2024
1 parent bf7ae4a commit a614cc9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions mm2src/coins/siacoin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use async_trait::async_trait;
use common::executor::abortable_queue::AbortableQueue;
use common::executor::{AbortableSystem, AbortedError, Timer};
use common::log::info;
use common::DEX_FEE_PUBKEY_ED25510;
use common::DEX_FEE_PUBKEY_ED25519;
use derive_more::{From, Into};
use futures::compat::Future01CompatExt;
use futures::{FutureExt, TryFutureExt};
Expand Down Expand Up @@ -53,7 +53,7 @@ use mm2_err_handle::prelude::*;

lazy_static! {
pub static ref FEE_PUBLIC_KEY_BYTES: Vec<u8> =
hex::decode(DEX_FEE_PUBKEY_ED25510).expect("DEX_FEE_PUBKEY_ED25510 is a valid hex string");
hex::decode(DEX_FEE_PUBKEY_ED25519).expect("DEX_FEE_PUBKEY_ED25510 is a valid hex string");
pub static ref FEE_PUBLIC_KEY: PublicKey =
PublicKey::from_bytes(&FEE_PUBLIC_KEY_BYTES).expect("DEX_FEE_PUBKEY_ED25510 is a valid PublicKey");
pub static ref FEE_ADDR: Address = Address::from_public_key(&FEE_PUBLIC_KEY);
Expand Down Expand Up @@ -1878,7 +1878,7 @@ mod tests {
/// Test the .expect()s used during lazy_static initialization of FEE_PUBLIC_KEY
#[test]
fn test_sia_fee_pubkey_init() {
let pubkey_bytes: Vec<u8> = hex::decode(DEX_FEE_PUBKEY_ED25510).unwrap();
let pubkey_bytes: Vec<u8> = hex::decode(DEX_FEE_PUBKEY_ED25519).unwrap();
let pubkey = PublicKey::from_bytes(&FEE_PUBLIC_KEY_BYTES).unwrap();
assert_eq!(pubkey_bytes, *FEE_PUBLIC_KEY_BYTES);
assert_eq!(pubkey, *FEE_PUBLIC_KEY);
Expand Down
2 changes: 1 addition & 1 deletion mm2src/common/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ pub const SATOSHIS: u64 = 100_000_000;

pub const DEX_FEE_ADDR_PUBKEY: &str = "03bc2c7ba671bae4a6fc835244c9762b41647b9827d4780a89a949b984a8ddcc06";

pub const DEX_FEE_PUBKEY_ED25510: &str = "77b0936728f63257b074c7b3fb2c4fad98df345f57de1ec418fc42619e4e29f8";
pub const DEX_FEE_PUBKEY_ED25519: &str = "77b0936728f63257b074c7b3fb2c4fad98df345f57de1ec418fc42619e4e29f8";

pub const PROXY_REQUEST_EXPIRATION_SEC: i64 = 15;

Expand Down

0 comments on commit a614cc9

Please sign in to comment.