Skip to content

Commit

Permalink
remove deposit from near horizon call
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlanglen committed Oct 25, 2023
1 parent 5401ba1 commit 76fa0c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions apps/potlock/widget/Project/CreateForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -435,14 +435,13 @@ const handleCreateProject = (e) => {
{
contractName: "nearhorizon.near",
methodName: "add_project",
deposit: Big(JSON.stringify(horizonArgs).length * 16).mul(Big(10).pow(20)),
args: horizonArgs,
},
// register project on potlock
{
contractName: registryId,
methodName: "register",
deposit: Big(JSON.stringify(potlockRegistryArgs).length * 16).mul(Big(10).pow(20)),
deposit: Big(JSON.stringify(potlockRegistryArgs).length * 16).mul(Big(10).pow(20)), // TODO: update this, it isn't correct
args: potlockRegistryArgs,
},
];
Expand Down
3 changes: 1 addition & 2 deletions build/potlock/src/Project/CreateForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -435,14 +435,13 @@ const handleCreateProject = (e) => {
{
contractName: "nearhorizon.near",
methodName: "add_project",
deposit: Big(JSON.stringify(horizonArgs).length * 16).mul(Big(10).pow(20)),
args: horizonArgs,
},
// register project on potlock
{
contractName: registryId,
methodName: "register",
deposit: Big(JSON.stringify(potlockRegistryArgs).length * 16).mul(Big(10).pow(20)),
deposit: Big(JSON.stringify(potlockRegistryArgs).length * 16).mul(Big(10).pow(20)), // TODO: update this, it isn't correct
args: potlockRegistryArgs,
},
];
Expand Down

0 comments on commit 76fa0c2

Please sign in to comment.