From fb42cacfb3f50fdf4aab3fbaf2e2e9ce0c1e62f2 Mon Sep 17 00:00:00 2001 From: mohanson Date: Thu, 25 Jul 2024 09:38:28 +0800 Subject: [PATCH] Fix CKB_SUFFIX --- contracts/ccc-eth-lock/src/entry.rs | 2 +- tests/src/test_eth.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/ccc-eth-lock/src/entry.rs b/contracts/ccc-eth-lock/src/entry.rs index 9ace856..416ae3d 100644 --- a/contracts/ccc-eth-lock/src/entry.rs +++ b/contracts/ccc-eth-lock/src/entry.rs @@ -28,7 +28,7 @@ fn message_hash(msg: &str) -> [u8; 32] { assert_eq!(msg.len(), 64); // Text used to signify that a signed message follows and to prevent inadvertently signing a transaction. const CKB_PREFIX: &str = "Signing a CKB transaction: 0x"; - const CKB_SUFFIX: &str = "\n\nIMPORTANT: Please verify the integrity and authenticity of connected BTC wallet before signing this message\n"; + const CKB_SUFFIX: &str = "\n\nIMPORTANT: Please verify the integrity and authenticity of connected Ethereum wallet before signing this message\n"; const ETH_PREFIX: &str = "Ethereum Signed Message:\n"; let mut data: Vec = Vec::new(); assert_eq!(ETH_PREFIX.len(), 25); diff --git a/tests/src/test_eth.rs b/tests/src/test_eth.rs index 8938055..b944687 100644 --- a/tests/src/test_eth.rs +++ b/tests/src/test_eth.rs @@ -24,7 +24,7 @@ fn message_hash(msg: &str) -> [u8; 32] { assert_eq!(msg.len(), 64); // Text used to signify that a signed message follows and to prevent inadvertently signing a transaction. const CKB_PREFIX: &str = "Signing a CKB transaction: 0x"; - const CKB_SUFFIX: &str = "\n\nIMPORTANT: Please verify the integrity and authenticity of connected BTC wallet before signing this message\n"; + const CKB_SUFFIX: &str = "\n\nIMPORTANT: Please verify the integrity and authenticity of connected Ethereum wallet before signing this message\n"; const ETH_PREFIX: &str = "Ethereum Signed Message:\n"; let mut data: Vec = Vec::new(); assert_eq!(ETH_PREFIX.len(), 25);