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 bug with empty array in write contract page #4240

Merged
merged 1 commit into from
Jun 7, 2021

Conversation

nikitosing
Copy link
Member

Changes to resolve issue #4206

  • added additional check in apps/block_scout_web/assets/js/lib/smart_contract/common_helpers.js prepareMethodArgs()

Comment on lines 36 to 38
if (sanitizedInputValue === '') {
return [[]]
}
Copy link
Member

Choose a reason for hiding this comment

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

@nikitosing I would suggest defining this pattern in a separate function since the same construction is used above in this file.

@vbaranov vbaranov self-requested a review June 7, 2021 13:32
@vbaranov vbaranov merged commit 4ae3843 into master Jun 7, 2021
@vbaranov vbaranov deleted the np-bug-with-empty-array branch June 7, 2021 13:35
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