Skip to content

Commit

Permalink
oh
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmitry-lahoda committed Apr 14, 2024
1 parent 5c4d0ad commit 98bf922
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions contracts/cosmwasm/executor/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ pub fn execute(
msg: cvm_runtime::executor::ExecuteMsg,
) -> Result {
let token = ensure_owner(deps.as_ref(), &env.contract.address, info.sender.clone())?;
deps.api.debug(&format!("cvm::executor::execute::coins {:?}", &info.funds));
use cvm_runtime::executor::*;
match msg {
ExecuteMsg::Execute { tip, program } => initiate_execution(token, deps, env, tip, program),
Expand Down
2 changes: 1 addition & 1 deletion contracts/cosmwasm/order/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub fn partial_cross_chain_not_implemented() -> StdError {
}

pub(crate) fn expected_some_funds_in_route() -> StdError {
StdError::generic_err("expected_some_funds_in_route")
StdError::generic_err("Expected some funds in route")
}

pub fn banks_funds_must_be_at_least_routed(has: &Coin, expected: &Coin) -> StdError {
Expand Down
2 changes: 1 addition & 1 deletion contracts/cosmwasm/order/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ impl OrderContract<'_> {
.into_iter()
.filter(|x| x.amount.u128() > 0)
.collect();

ctx.deps.api.debug(&format!("mantis::order::route::funds {:?}", funds));
ensure!(
!funds.is_empty(),
crate::errors::expected_some_funds_in_route()
Expand Down
1 change: 1 addition & 0 deletions contracts/cosmwasm/outpost/src/contract/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ fn transfer_from_user(

program_funds.0.push((asset.asset_id, coin.amount.into()));
}
deps.api.debug(&format!("cvm::outpost::funds obtained from msg {:?}", program_funds));
// we cannot do same trick with CW20 as need to know CW20 address (and it has to support
// Allowance query).
// so it is implement CW20 receiver interface like Michal did for wallet
Expand Down

0 comments on commit 98bf922

Please sign in to comment.