From 3d86230c4f70ad790c7322399b3570093a16b696 Mon Sep 17 00:00:00 2001 From: Elliot Braem <16282460+elliotBraem@users.noreply.github.com> Date: Tue, 26 Dec 2023 18:52:59 -0600 Subject: [PATCH] attach 2N when creating a community --- src/core/adapter/devhub-contract.jsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/core/adapter/devhub-contract.jsx b/src/core/adapter/devhub-contract.jsx index 1e38772c8..d006b9331 100644 --- a/src/core/adapter/devhub-contract.jsx +++ b/src/core/adapter/devhub-contract.jsx @@ -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 }) {