Skip to content

Commit

Permalink
feat(objectarium): prevent contract execution with funds
Browse files Browse the repository at this point in the history
  • Loading branch information
bdeneux committed Jun 4, 2024
1 parent 51115cc commit 816a0e5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contracts/axone-objectarium/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use crate::error::BucketError;
use cosmwasm_std::entry_point;
use cosmwasm_std::{to_json_binary, Binary, Deps, DepsMut, Env, MessageInfo, Response, StdResult};
use cw2::set_contract_version;
use cw_utils::nonpayable;

use crate::crypto;
use crate::error::ContractError;
Expand Down Expand Up @@ -42,6 +43,8 @@ pub fn execute(
info: MessageInfo,
msg: ExecuteMsg,
) -> Result<Response, ContractError> {
nonpayable(&info)?;

match msg {
ExecuteMsg::StoreObject {
data,
Expand Down Expand Up @@ -434,6 +437,7 @@ mod tests {
use cosmwasm_std::StdError::NotFound;
use cosmwasm_std::{coins, from_json, Addr, Attribute, Order, StdError, Uint128};
use cw_utils::PaymentError;

use std::any::type_name;

fn decode_hex(hex: &str) -> Vec<u8> {
Expand Down

0 comments on commit 816a0e5

Please sign in to comment.