neo-project / neo-blockchain-toolkit

Develop, debug, test, deploy, track and manage Neo Blockchain Smart Contracts
https://marketplace.visualstudio.com/items?itemName=ngd-seattle.neo-blockchain-toolkit
MIT License
32 stars 22 forks source link

Incorrect Script hash to N3 address in Balance information #27

Open apisit opened 3 years ago

apisit commented 3 years ago

I deployed this smart contract on my private net

0xb2e0666555f609db2d5ea0f5a70ccdf33813fad7

image

I noticed that an N3 address of a smart contract is a different address than the one I tested sending asset to

image

b2e0666555f609db2d5ea0f5a70ccdf33813fad7 > NcDnHV95KazYPH9DFGsa7Rx6rXk4bYdyBg

The correct one should be Nfbx3XBaVyDA7KtFQSotXtjAZz6MjYig3o

I believe this is because it uses b2e0666555f609db2d5ea0f5a70ccdf33813fad7 instead of 0xb2e0666555f609db2d5ea0f5a70ccdf33813fad7 — missing prefix 0x

it would be even better if we are able to see a contract name in that NEP17 balances.