Closed tonamson closed 8 months ago
What address did you input? The function will return false when your address starts with 0x.
What address did you input? The function will return false when your address starts with 0x.
TREwjaDa9xhXHqYdPjbQecUUYu7jPokeEP
i use this address
As I have tested, the result returned is True. So maybe you need to check if your code went into error somewhere else.
As I have tested, the result returned is True. So maybe you need to check if your code went into error somewhere else.
i use nuxt and import TronWeb version 5.3.1 can you checkit?
Can you just post your code here? Remember to remove privateKey.
I try in nuxt tronweb version is 5.3.2
And it return
Address: TREwjaDa9xhXHqYdPjbQecUUYu7jPokeEP
I found solution
cp node_modules/tronweb/dist/TronWeb.js ./js/tronweb.js
I use TronWeb version 5.3.1, and I checked that the address validation method isAddress always returns false when I input any address.