Skip to content

Commit

Permalink
Market: Use shd_entry_point instead of the regular one
Browse files Browse the repository at this point in the history
  • Loading branch information
ueco-jb committed Jan 30, 2024
1 parent 8f58d98 commit 5c79173
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions contracts/lending/market_v2/src/contract.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#[cfg(not(feature = "library"))]
use shade_protocol::c_std::entry_point;
use shade_protocol::c_std::shd_entry_point;
use shade_protocol::{
c_std::{
from_binary, to_binary, Addr, Binary, Coin as StdCoin, Decimal, Deps, DepsMut, Env,
Expand All @@ -24,7 +24,7 @@ use lending_utils::{token::Token, Authentication, ViewingKey};

const CTOKEN_INIT_REPLY_ID: u64 = 1;

#[cfg_attr(not(feature = "library"), entry_point)]
#[cfg_attr(not(feature = "library"), shd_entry_point)]
pub fn instantiate(
deps: DepsMut,
env: Env,
Expand Down Expand Up @@ -90,7 +90,7 @@ pub fn instantiate(
)))
}

#[cfg_attr(not(feature = "library"), entry_point)]
#[cfg_attr(not(feature = "library"), shd_entry_point)]
pub fn reply(deps: DepsMut, env: Env, msg: Reply) -> Result<Response, ContractError> {
match msg.id {
CTOKEN_INIT_REPLY_ID => reply::token_instantiate_reply(deps, env, msg),
Expand Down Expand Up @@ -131,7 +131,7 @@ mod reply {
}

/// Execution entry point
#[cfg_attr(not(feature = "library"), entry_point)]
#[cfg_attr(not(feature = "library"), shd_entry_point)]
pub fn execute(
deps: DepsMut,
env: Env,
Expand Down Expand Up @@ -777,7 +777,7 @@ pub fn authenticate(deps: Deps, auth: Authentication, account: &Addr) -> StdResu
}
}

#[cfg_attr(not(feature = "library"), entry_point)]
#[cfg_attr(not(feature = "library"), shd_entry_point)]
pub fn query(deps: Deps, env: Env, msg: QueryMsg) -> Result<Binary, ContractError> {
let res = match msg {
QueryMsg::TokensBalance {
Expand Down

0 comments on commit 5c79173

Please sign in to comment.