Skip to content

Commit

Permalink
Rename the constants
Browse files Browse the repository at this point in the history
  • Loading branch information
martiliones committed Feb 10, 2022
1 parent 0f72806 commit eb9f466
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions groups/newDelegate.js
Expand Up @@ -5,7 +5,7 @@ const constants = require('../helpers/constants');
const transactionFormer = require('../helpers/transactionFormer');
const validator = require('../helpers/validator');

const DEFAULT_SEND_TOKENS_RETRIES = 4; // How much re-tries for send tokens requests by default. Total 4+1 tries
const DEFAULT_NEW_DELEGATE_RETRIES = 4; // How much re-tries for send tokens requests by default. Total 4+1 tries

module.exports = (nodeManager) => {
/**
Expand All @@ -17,7 +17,7 @@ module.exports = (nodeManager) => {
* @param {number} maxRetries How much times to retry request
* @returns {Promise} Request results
*/
return (passPhrase, username, maxRetries = DEFAULT_SEND_TOKENS_RETRIES, retryNo = 0) => {
return (passPhrase, username, maxRetries = DEFAULT_NEW_DELEGATE_RETRIES, retryNo = 0) => {

let transaction;

Expand Down
4 changes: 2 additions & 2 deletions groups/voteForDelegate.js
Expand Up @@ -5,7 +5,7 @@ const constants = require('../helpers/constants');
const transactionFormer = require('../helpers/transactionFormer');
const validator = require('../helpers/validator');

const DEFAULT_SEND_TOKENS_RETRIES = 4; // How much re-tries for send tokens requests by default. Total 4+1 tries
const DEFAULT_VOTE_FOR_DELEGATE_RETRIES = 4; // How much re-tries for send tokens requests by default. Total 4+1 tries

module.exports = (nodeManager) => {
/**
Expand All @@ -16,7 +16,7 @@ module.exports = (nodeManager) => {
* @param {number} maxRetries How much times to retry request
* @returns {Promise} Request results
*/
return (passPhrase, votes, maxRetries = DEFAULT_SEND_TOKENS_RETRIES, retryNo = 0) => {
return (passPhrase, votes, maxRetries = DEFAULT_VOTE_FOR_DELEGATE_RETRIES, retryNo = 0) => {

let transaction;

Expand Down

0 comments on commit eb9f466

Please sign in to comment.