Skip to content

Commit f75d8b5

Browse files
committed
Fix check for has_shop on creating sale
1 parent 2343165 commit f75d8b5

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

community/community.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ void cambiatus::createsale(eosio::name from, std::string title, std::string desc
732732
communities community(_self, _self.value);
733733
const auto &cmm = community.get(quantity.symbol.raw(), "Can't find community with given Symbol");
734734

735-
eosio::check(cmm.has_objectives, "This community don't have objectives enabled.");
735+
eosio::check(cmm.has_shop, "This community don't have shop enabled.");
736736

737737
// Get last used objective id and update item_index table
738738
uint64_t sale_id;

token/token.wasm

154 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)