I call
let inst = contract.deployed()
and then on inst I can then call
mybn = units.then(function(inst) {return inst.getBN()}
mybn looks like this
BN { negative: 0, words: [ 1, <1 empty item> ], length: 1, red: null }
and if I run mybn.toNumber() I get the error letting me know mybn.toNumber is not a function
units? Is it a promise? It might be thatmybnis not aBNbut a promise instead, usingawaitshould resolve it. – Ismael Feb 25 '20 at 05:18