Open devhawk opened 3 years ago
According to NEP-6, it should indeed be isDefault
. This issue has been fixed in #2451.
How about updating the NEP instead of the code? As far as I could tell all json output in the code base is lower case (e.g. Block, Transaction, Manifest etc), there was even a special issue for it on the modules repo: https://github.com/neo-project/neo-modules/pull/277
Now isDefault
is the only property that violates this.
tried to load a wallet json file where the
isDefault
property name was incorrectly cased asisdefault
. Code threw a generic NullReferenceException which I could only figure out by running the code under a debugger and stepping thruNEP6Account.FromJson
.NEP6Account.FromJson
should be throwing a FormatException + details on the specific issue (in this case, something like "isDefault boolean property missing")