Skip to content

Commit

Permalink
fix(tests): forgot to change those
Browse files Browse the repository at this point in the history
  • Loading branch information
gluax committed Jun 5, 2024
1 parent 0c74455 commit 38e1269
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions contract/src/msgs/data_requests/test_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,15 @@ impl TestInfo {
msg_height: Option<u64>,
env_height: Option<u64>,
) -> 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 {
Expand All @@ -132,11 +136,15 @@ impl TestInfo {
msg_height: Option<u64>,
env_height: Option<u64>,
) -> 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 {
Expand Down

0 comments on commit 38e1269

Please sign in to comment.