diff --git a/contract/src/msgs/data_requests/test_helpers.rs b/contract/src/msgs/data_requests/test_helpers.rs index 906ed369..10e100c4 100644 --- a/contract/src/msgs/data_requests/test_helpers.rs +++ b/contract/src/msgs/data_requests/test_helpers.rs @@ -104,11 +104,15 @@ impl TestInfo { msg_height: Option, env_height: Option, ) -> Result<(), ContractError> { + let seq = self.get_account_sequence(sender.pub_key()); let msg_hash = hash([ "commit_data_result".as_bytes(), &dr_id, &msg_height.unwrap_or_default().to_be_bytes(), &commitment, + self.chain_id(), + self.contract_addr_bytes(), + &seq.to_be_bytes(), ]); let msg = commit_result::Execute { @@ -132,11 +136,15 @@ impl TestInfo { msg_height: Option, env_height: Option, ) -> Result<(), ContractError> { + let seq = self.get_account_sequence(sender.pub_key()); let msg_hash = hash([ "reveal_data_result".as_bytes(), &dr_id, &msg_height.unwrap_or_default().to_be_bytes(), &reveal_body.hash(), + self.chain_id(), + self.contract_addr_bytes(), + &seq.to_be_bytes(), ]); let msg = reveal_result::Execute {