Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comment Section Fix #966

Merged
merged 10 commits into from
Aug 24, 2022
Merged

Conversation

hanakoori01
Copy link
Contributor

@hanakoori01 hanakoori01 commented Jul 29, 2022

PR - EOS RATE

What does this PR do?

Steps to test

  1. Run make run
  2. Go to localhost:3000
  3. Go to Block Producers > Block Producer Profile > Comments Section

@leisterfrancisco
Copy link
Member

@hanakoori01 I like this solution, looks great. Have you tried deploying the smart contract (without any modification), do some comments, and then compile and deploy these changes you are proposing to validate the backend and smart contract behave as expecting?

@hanakoori01
Copy link
Contributor Author

hanakoori01 commented Aug 1, 2022

Yes of course @leisterfrancisco I did those tests before uploading the changes to GitHub, to validate that it was working correctly!

@lgtm-com
Copy link

lgtm-com bot commented Aug 1, 2022

This pull request introduces 1 alert when merging 8f9f8bc into db31101 - view on LGTM.com

new alerts:

  • 1 for Useless conditional

} = action
if (!isEden) return
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean code

blank line before and after of if conditional

} = action
let userRatings
if (isEden === null) return
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still pending blank line before of if

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is already fixed!

@@ -44,7 +44,7 @@ using eosio::public_key;
*/
namespace eosio {
constexpr name system_account{"eosio"_n};
constexpr name eden_account{"genesis.eden"_n};
constexpr name eden_account{"genesisdeden"_n};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use genesis.eden instead of genesisdeden

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am a bit confused, aren't we supposed to use genesisdeden because we are using jungle 4 account?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mainnet: genesis.eden
tesnet: genesisdeden

we are trying to get the genesis.eden account name on testnet but not yet

@hanakoori01 hanakoori01 merged commit 5839c49 into eoscostarica:staging Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Smart Contrat Deployed Check Comments features
2 participants