Skip to content

Commit

Permalink
chore: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
kulikthebird committed Dec 20, 2024
1 parent 022a858 commit 82119d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/replier/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use schemars::JsonSchema;
use serde::{Deserialize, Serialize};

const SET_DATA_IN_EXEC_AND_REPLY_FLAG: u64 = 0x100;
const RETURN_OERDER_IN_REPLY_FLAG: u64 = 0x200;
const RETURN_ORDER_IN_REPLY_FLAG: u64 = 0x200;
const REPLY_ERROR_FLAG: u64 = 0x400;

#[cw_serde]
Expand Down Expand Up @@ -85,7 +85,7 @@ pub fn execute(
msg_id |= SET_DATA_IN_EXEC_AND_REPLY_FLAG;
}
if msg.return_order_in_reply {
msg_id |= RETURN_OERDER_IN_REPLY_FLAG;
msg_id |= RETURN_ORDER_IN_REPLY_FLAG;
}
if msg.reply_error {
msg_id |= REPLY_ERROR_FLAG;
Expand Down Expand Up @@ -116,7 +116,7 @@ pub fn query(_deps: Deps, _env: Env, _msg: QueryMsg) -> StdResult<QueryResponse>
pub fn reply(deps: DepsMut, _env: Env, msg: Reply) -> StdResult<Response> {
let msg_id = msg.id & 0xFF;
let should_set_data = msg.id & SET_DATA_IN_EXEC_AND_REPLY_FLAG != 0;
let should_set_order = msg.id & RETURN_OERDER_IN_REPLY_FLAG != 0;
let should_set_order = msg.id & RETURN_ORDER_IN_REPLY_FLAG != 0;
let should_return_error = msg.id & REPLY_ERROR_FLAG != 0;

let data = deps.storage.get(CONFIG_KEY).unwrap();
Expand Down

0 comments on commit 82119d0

Please sign in to comment.