Skip to content

Commit

Permalink
Merge pull request #177 from PotLock/fix/status-update-deposit
Browse files Browse the repository at this point in the history
add deposit to call to update project status
  • Loading branch information
lachlanglen authored Feb 8, 2024
2 parents abba9d0 + e6fe839 commit 77d4cc6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions apps/potlock/widget/Project/Body.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
const { ownerId, REGISTRY_CONTRACT_ID } = props;
const {
ownerId,
REGISTRY_CONTRACT_ID,
userIsRegistryAdmin,
SUPPORTED_FTS: { NEAR },
} = props;

const IPFS_BASE_URL = "https://nftstorage.link/ipfs/";

Expand Down Expand Up @@ -184,7 +189,7 @@ return (
/>
</Header>
<Actions />
{props.registryConfig && props.registryConfig.admins.includes(context.accountId) && (
{userIsRegistryAdmin && (
<Widget
src={`${ownerId}/widget/Inputs.Select`}
props={{
Expand All @@ -201,6 +206,7 @@ return (
contractName: REGISTRY_CONTRACT_ID,
methodName: "admin_set_project_status",
args: { project_id: props.projectId, status: status.value },
deposit: NEAR.toIndivisible(0.01).toString(),
},
]);
}
Expand Down

0 comments on commit 77d4cc6

Please sign in to comment.