Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
ailisp committed Jan 3, 2024
1 parent dda8976 commit e1c4d18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/community/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,4 +199,4 @@ pub const CREATE_COMMUNITY_BALANCE: Balance = 2_000_000_000_000_000_000_000_000;
pub const CREATE_COMMUNITY_GAS: Gas = Gas(50_000_000_000_000); // 50 Tgas
pub const UPDATE_COMMUNITY_GAS: Gas = Gas(30_000_000_000_000); // 30 Tgas
pub const DELETE_COMMUNITY_GAS: Gas = Gas(30_000_000_000_000); // 30 Tgas
pub const ADD_COMMUNITY_ANNOUNCEMENT_GAS: Gas = Gas(30_000_000_000_000); // 30 Tgas
pub const SET_COMMUNITY_SOCIALDB_GAS: Gas = Gas(30_000_000_000_000); // 30 Tgas
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ impl Contract {
.get_editable_community(&handle)
.expect("Only community admins and hub moderators can set community Social DB");

require!(env::prepaid_gas() >= ADD_COMMUNITY_ANNOUNCEMENT_GAS, "Require at least 30 Tgas");
require!(env::prepaid_gas() >= SET_COMMUNITY_SOCIALDB_GAS, "Require at least 30 Tgas");
social_db_contract()
.with_unused_gas_weight(1)
.set(json!({ get_devhub_community_account(&handle): data }));
Expand Down

0 comments on commit e1c4d18

Please sign in to comment.