This repository was archived by the owner on Mar 5, 2025. It is now read-only.
Web3-validator
#6321
Replies: 1 comment 1 reply
-
The error "Uncaught TypeError: Cannot read properties of null (reading 'validator')" means that web3.validator does not exist in your Web3.js instance. Fix: web3-validator is not part of Web3.js. Instead, use the correct package or web3.utils.isAddress() for validation. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How do you use web3-validator correctly?
Trying to use isAddress function to check user input for contract voting. Downloaded
web3-validator
--> Calledweb3.validator.isAddress(address)
--> Get errorUncaught TypeError: Cannot read properties of null (reading 'validator')
Am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions