CityOfZion / neon-js

Javascript libraries that allow the applications to interact with NEO blockchain
https://docs.coz.io/neo3/neon-js/index.html
MIT License
183 stars 165 forks source link

feat: accept scriptHash with 0x prefix in Account constructor #896

Closed raulduartep closed 1 year ago

raulduartep commented 1 year ago

This PR is important to avoid problems when passing 0x on the scripthash to create a new Account. It seems unecessary at first but this constructor is being used by other libraries that tries to convert different kinds of input to an Address or ScriptHash.

lllwvlvwlll commented 1 year ago

Task linked: CU-864ekh1aw new Account of NeonJS needs to accept "0x" and remove it if necessary