Substitutes parseInt for BigNumber's .toNumber method because web3 1.0 now returns these values as strings rather than BN objects. NB: Assumes that no one's migrations count will ever climb into BigNumber territory.
Removes references to provider.sendAsync. Web3 1.0 is all async and has renamed this method to send.
parseInt
for BigNumber's.toNumber
method because web3 1.0 now returns these values as strings rather than BN objects. NB: Assumes that no one's migrations count will ever climb into BigNumber territory.provider.sendAsync
. Web3 1.0 is all async and has renamed this method tosend
.