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

Fix token name length condition #2618

Merged

Conversation

SebastianMarian
Copy link
Contributor

  • Fixed token name length condition on ESDT issuance

@SebastianMarian SebastianMarian added the type:bug Something isn't working label Dec 22, 2020
@SebastianMarian SebastianMarian self-assigned this Dec 22, 2020
@@ -191,7 +191,7 @@ func (e *esdt) issue(args *vmcommon.ContractCallInput) vmcommon.ReturnCode {
e.eei.AddReturnMessage(err.Error())
return vmcommon.UserError
}
if len(args.Arguments[0]) < minLengthForTickerName ||
if len(args.Arguments[0]) < int(esdtConfig.MinTokenNameLength) ||
Copy link
Contributor

Choose a reason for hiding this comment

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

There is no need for no min length check.

@@ -191,7 +191,7 @@ func (e *esdt) issue(args *vmcommon.ContractCallInput) vmcommon.ReturnCode {
e.eei.AddReturnMessage(err.Error())
return vmcommon.UserError
}
if len(args.Arguments[0]) < minLengthForTickerName ||
if len(args.Arguments[0]) < int(esdtConfig.MinTokenNameLength) ||
Copy link
Contributor

Choose a reason for hiding this comment

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

do we still use the const/var minLengthForTickerName ?

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 used for ticker name

@LucianMincu LucianMincu merged commit 5225bc9 into development Dec 22, 2020
@LucianMincu LucianMincu deleted the Fix-token-name-length-condition-on-estd-issue branch December 29, 2020 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants