From e035b051793b6f0d82e0f1b207a312fd62674a48 Mon Sep 17 00:00:00 2001 From: Megha-Dev-19 Date: Wed, 13 Dec 2023 21:03:05 +0530 Subject: [PATCH 1/4] fix deposit error --- src/devhub/entity/post/Post.jsx | 1 + src/devhub/entity/post/PostEditor.jsx | 1 + src/devhub/page/create.jsx | 1 + 3 files changed, 3 insertions(+) diff --git a/src/devhub/entity/post/Post.jsx b/src/devhub/entity/post/Post.jsx index 3ff2e0615..6063afa9b 100644 --- a/src/devhub/entity/post/Post.jsx +++ b/src/devhub/entity/post/Post.jsx @@ -296,6 +296,7 @@ const onLike = () => { keys: [context.accountId + "/index/notify"], }, gas: Big(10).pow(14), + deposit: Big(10).pow(14), }); } diff --git a/src/devhub/entity/post/PostEditor.jsx b/src/devhub/entity/post/PostEditor.jsx index 06d539f4e..babe56fd5 100644 --- a/src/devhub/entity/post/PostEditor.jsx +++ b/src/devhub/entity/post/PostEditor.jsx @@ -226,6 +226,7 @@ const onSubmit = () => { keys: [context.accountId + "/index/notify"], }, gas: Big(10).pow(14), + deposit: Big(10).pow(14), }); } Near.call(txn); diff --git a/src/devhub/page/create.jsx b/src/devhub/page/create.jsx index 63a12251d..2c262877a 100644 --- a/src/devhub/page/create.jsx +++ b/src/devhub/page/create.jsx @@ -191,6 +191,7 @@ const onSubmit = () => { keys: [context.accountId + "/index/notify"], }, gas: Big(10).pow(14), + deposit: Big(10).pow(14), }); } Near.call(txn); From c5656d71daf2cc51f548e4ca61700b987a715633 Mon Sep 17 00:00:00 2001 From: Megha-Dev-19 Date: Wed, 13 Dec 2023 21:12:57 +0530 Subject: [PATCH 2/4] reduce deposit --- src/devhub/entity/post/Post.jsx | 2 +- src/devhub/entity/post/PostEditor.jsx | 2 +- src/devhub/page/create.jsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/devhub/entity/post/Post.jsx b/src/devhub/entity/post/Post.jsx index 6063afa9b..a51e3bf16 100644 --- a/src/devhub/entity/post/Post.jsx +++ b/src/devhub/entity/post/Post.jsx @@ -296,7 +296,7 @@ const onLike = () => { keys: [context.accountId + "/index/notify"], }, gas: Big(10).pow(14), - deposit: Big(10).pow(14), + deposit:Big(10).pow(5), }); } diff --git a/src/devhub/entity/post/PostEditor.jsx b/src/devhub/entity/post/PostEditor.jsx index babe56fd5..012116f26 100644 --- a/src/devhub/entity/post/PostEditor.jsx +++ b/src/devhub/entity/post/PostEditor.jsx @@ -226,7 +226,7 @@ const onSubmit = () => { keys: [context.accountId + "/index/notify"], }, gas: Big(10).pow(14), - deposit: Big(10).pow(14), + deposit:Big(10).pow(5), }); } Near.call(txn); diff --git a/src/devhub/page/create.jsx b/src/devhub/page/create.jsx index 2c262877a..01aa6b246 100644 --- a/src/devhub/page/create.jsx +++ b/src/devhub/page/create.jsx @@ -191,7 +191,7 @@ const onSubmit = () => { keys: [context.accountId + "/index/notify"], }, gas: Big(10).pow(14), - deposit: Big(10).pow(14), + deposit:Big(10).pow(5), }); } Near.call(txn); From decf9906f50798ab949b69c8e557375313796430 Mon Sep 17 00:00:00 2001 From: Megha-Dev-19 Date: Wed, 13 Dec 2023 21:13:23 +0530 Subject: [PATCH 3/4] prettier update --- src/devhub/entity/post/Post.jsx | 2 +- src/devhub/entity/post/PostEditor.jsx | 2 +- src/devhub/page/create.jsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/devhub/entity/post/Post.jsx b/src/devhub/entity/post/Post.jsx index a51e3bf16..52f6f78ea 100644 --- a/src/devhub/entity/post/Post.jsx +++ b/src/devhub/entity/post/Post.jsx @@ -296,7 +296,7 @@ const onLike = () => { keys: [context.accountId + "/index/notify"], }, gas: Big(10).pow(14), - deposit:Big(10).pow(5), + deposit: Big(10).pow(5), }); } diff --git a/src/devhub/entity/post/PostEditor.jsx b/src/devhub/entity/post/PostEditor.jsx index 012116f26..7b2b5d874 100644 --- a/src/devhub/entity/post/PostEditor.jsx +++ b/src/devhub/entity/post/PostEditor.jsx @@ -226,7 +226,7 @@ const onSubmit = () => { keys: [context.accountId + "/index/notify"], }, gas: Big(10).pow(14), - deposit:Big(10).pow(5), + deposit: Big(10).pow(5), }); } Near.call(txn); diff --git a/src/devhub/page/create.jsx b/src/devhub/page/create.jsx index 01aa6b246..28786875d 100644 --- a/src/devhub/page/create.jsx +++ b/src/devhub/page/create.jsx @@ -191,7 +191,7 @@ const onSubmit = () => { keys: [context.accountId + "/index/notify"], }, gas: Big(10).pow(14), - deposit:Big(10).pow(5), + deposit: Big(10).pow(5), }); } Near.call(txn); From 0ceb734fa71c24ad957a8396e1ecc4741a5fecae Mon Sep 17 00:00:00 2001 From: Vlad Frolov Date: Wed, 13 Dec 2023 16:58:20 +0100 Subject: [PATCH 4/4] Apply suggestions from code review --- src/devhub/entity/post/Post.jsx | 2 +- src/devhub/entity/post/PostEditor.jsx | 2 +- src/devhub/page/create.jsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/devhub/entity/post/Post.jsx b/src/devhub/entity/post/Post.jsx index 52f6f78ea..b2c34661e 100644 --- a/src/devhub/entity/post/Post.jsx +++ b/src/devhub/entity/post/Post.jsx @@ -296,7 +296,7 @@ const onLike = () => { keys: [context.accountId + "/index/notify"], }, gas: Big(10).pow(14), - deposit: Big(10).pow(5), + deposit: Big(10).pow(22), }); } diff --git a/src/devhub/entity/post/PostEditor.jsx b/src/devhub/entity/post/PostEditor.jsx index 7b2b5d874..c03168076 100644 --- a/src/devhub/entity/post/PostEditor.jsx +++ b/src/devhub/entity/post/PostEditor.jsx @@ -226,7 +226,7 @@ const onSubmit = () => { keys: [context.accountId + "/index/notify"], }, gas: Big(10).pow(14), - deposit: Big(10).pow(5), + deposit: Big(10).pow(22), }); } Near.call(txn); diff --git a/src/devhub/page/create.jsx b/src/devhub/page/create.jsx index 28786875d..70a1c62eb 100644 --- a/src/devhub/page/create.jsx +++ b/src/devhub/page/create.jsx @@ -191,7 +191,7 @@ const onSubmit = () => { keys: [context.accountId + "/index/notify"], }, gas: Big(10).pow(14), - deposit: Big(10).pow(5), + deposit: Big(10).pow(22), }); } Near.call(txn);