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 checking var type #4696

Merged
merged 1 commit into from
Apr 9, 2024
Merged

Fix checking var type #4696

merged 1 commit into from
Apr 9, 2024

Conversation

yann300
Copy link
Contributor

@yann300 yann300 commented Apr 9, 2024

No description provided.

@yann300 yann300 requested a review from Aniket-Engg April 9, 2024 07:41
Copy link

netlify bot commented Apr 9, 2024

Deploy Preview for remixproject ready!

Name Link
🔨 Latest commit 3c19573
🔍 Latest deploy log https://app.netlify.com/sites/remixproject/deploys/661516ce2d1a5c0008557940
😎 Deploy Preview https://deploy-preview-4696--remixproject.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -14,7 +14,7 @@ export const SolidityLocals = ({data, message, registerEvent, triggerEvent, clas
let color = 'var(--primary)'
if (data.isArray || data.isStruct || data.isMapping) {
color = 'var(--info)'
} else if (data.type.indexOf('uint') === 0 || data.type.indexOf('int') === 0 || data.type.indexOf('bool') === 0 || data.type.indexOf('enum') === 0) {
} else if (data.type && data.type.indexOf && (data.type.indexOf('uint') === 0 || data.type.indexOf('int') === 0 || data.type.indexOf('bool') === 0 || data.type.indexOf('enum') === 0)) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

why are you checking data.type.indexOf ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

because in my case indexOf was undefined

Copy link
Collaborator

Choose a reason for hiding this comment

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

ok

@Aniket-Engg Aniket-Engg force-pushed the fix_debugging_locals branch from e0344fd to 3c19573 Compare April 9, 2024 10:22
@Aniket-Engg Aniket-Engg enabled auto-merge (rebase) April 9, 2024 10:22
@Aniket-Engg Aniket-Engg merged commit 93b986b into master Apr 9, 2024
31 of 32 checks passed
@Aniket-Engg Aniket-Engg deleted the fix_debugging_locals branch April 9, 2024 10:29
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