Skip to content

Commit

Permalink
attach 2N when creating a community
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotBraem committed Dec 27, 2023
1 parent 6857ebf commit 3d86230
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/core/adapter/devhub-contract.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ function hasModerator({ account_id }) {
}

function createCommunity({ inputs }) {
return Near.call("${REPL_DEVHUB_CONTRACT}", "create_community", { inputs });
return Near.call(
"${REPL_DEVHUB_CONTRACT}",
"create_community",
{ inputs },
Big(10).pow(14), // gas
Big(2) * Big(10).pow(24) // deposit (2N)
);
}

function getCommunity({ handle }) {
Expand Down

0 comments on commit 3d86230

Please sign in to comment.