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:
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.
tznft show-balancereturns "invalid inspector storage state" becauselib/contracts.jsat line 133 checksif (Array.isArray(storage))andstorageis not an array but:So, when I edited it to:
It worked.