Skip to content

Commit

Permalink
fix merge issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cgorenflo committed Sep 19, 2023
1 parent 125cf31 commit 38ad94b
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions contracts/connection-router/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,23 +270,6 @@ mod tests {
);
}

#[test]
fn create_correct_global_message_id() {
let msg = NewMessage {
id_on_chain: "hash:id".to_string().parse().unwrap(),
source_chain: "source_chain".to_string().parse().unwrap(),
source_address: "source_address".parse().unwrap(),
destination_chain: "destination_chain".parse().unwrap(),
destination_address: "destination_address".parse().unwrap(),
payload_hash: [1; 32].into(),
};

assert_eq!(
msg.global_id().to_string(),
"source_chain:hash:id".to_string()
);
}

#[test]
// Any modifications to the Message struct fields or their types
// will cause this test to fail, indicating that a migration is needed.
Expand Down

0 comments on commit 38ad94b

Please sign in to comment.