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

Add error messages #29

Merged
merged 1 commit into from
Jun 3, 2020
Merged

Add error messages #29

merged 1 commit into from
Jun 3, 2020

Conversation

bingen
Copy link
Contributor

@bingen bingen commented Jun 3, 2020

@bingen bingen requested a review from facuspagnuolo June 3, 2020 20:42
@bingen bingen self-assigned this Jun 3, 2020
@bingen bingen merged commit 31031db into master Jun 3, 2020
@@ -19,6 +19,7 @@ contract Staking is Autopetrified, ERCStaking, ERCStakingHistory, IStakingLockin
string private constant ERROR_TOKEN_NOT_CONTRACT = "STAKING_TOKEN_NOT_CONTRACT";
string private constant ERROR_AMOUNT_ZERO = "STAKING_AMOUNT_ZERO";
string private constant ERROR_TOKEN_TRANSFER = "STAKING_TOKEN_TRANSFER";
string private constant ERROR_TOKEN_DEPOSIT = "STAKING_TOKEN_DEPOSIT";
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd use STAKING_TOKEN_DEPOSIT_FAIL

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, I’ll open another PR for it and change the one for transfer accordingly.

@sohkai sohkai deleted the new_error_messages branch July 24, 2020 09:36
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.

2 participants