You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the method may_load exists for struct cw_storage_plus::Map<'static, (std::string::String, Uint256), Uint256>, but its trait bounds were not satisfied the following trait bounds were not satisfied: (std::string::String, Uint256): PrimaryKey#663
Hello I have this error when I try to call may_load on a Map.
my code let c = CARDS.may_load(deps.storage, (from, token_id))?; Ok(match c { Some(v) => { if v < value { return Err(ContractError::NoOwnCard) } }, None => return Err(ContractError::Unkown) });
Hello I have this error when I try to call may_load on a Map.
my code
let c = CARDS.may_load(deps.storage, (from, token_id))?; Ok(match c { Some(v) => { if v < value { return Err(ContractError::NoOwnCard) } }, None => return Err(ContractError::Unkown) });