Closed robliou closed 1 year ago
There are multiple problems here
base64ToHash160
doesn't return anythingbase64ToHash160
is used before it's definedbase64ToAddress
correctly when logging (you're not supplying any arguments) I'm closing this as this is not an issue with neon-js
but with understanding TS.
When reporting possible issues in the future, please include reproducible code snippet so it's easier to assist.
Hello!
As the title states, I'm trying to convert a Base64 script hash to Neo3 address (wallet), but am getting the error:
caught (in promise) TypeError: _cityofzion_neon_js__WEBPACK_IMPORTED_MODULE_1___default(...).getAddressFromScriptHash is not a function at base64ToAddress (bundle.js:846:70) at bundle.js:853:56 at Array.map (<anonymous>) at bundle.js:831:40
To perform this conversion, I am referencing the NeonJS documentation. My code looks like this:
What could I be doing wrong here?
Thanks in advance,