Skip to content

Commit

Permalink
Fix CKB_SUFFIX
Browse files Browse the repository at this point in the history
  • Loading branch information
mohanson committed Jul 25, 2024
1 parent d26a706 commit fb42cac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/ccc-eth-lock/src/entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<u8> = Vec::new();
assert_eq!(ETH_PREFIX.len(), 25);
Expand Down
2 changes: 1 addition & 1 deletion tests/src/test_eth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<u8> = Vec::new();
assert_eq!(ETH_PREFIX.len(), 25);
Expand Down

0 comments on commit fb42cac

Please sign in to comment.