Closed dyske closed 2 years ago
tznft show-balance returns "invalid inspector storage state" because lib/contracts.js at line 133 checks if (Array.isArray(storage)) and storage is not an array but:
tznft show-balance
lib/contracts.js
if (Array.isArray(storage))
storage
storage { state: [ { request: [Object], balance: [BigNumber] }, { request: [Object], balance: [BigNumber] } ] }
So, when I edited it to:
if (Array.isArray(storage.state)) printBalances(storage.state); else {
It worked.
Thank you for finding and reporting the issue. It is fixed now
tznft show-balance
returns "invalid inspector storage state" becauselib/contracts.js
at line 133 checksif (Array.isArray(storage))
andstorage
is not an array but:So, when I edited it to:
It worked.