Closed chadoh closed 3 years ago
Today, our toYocto function requires a string. It should also handle valid numbers.
toYocto
https://github.com/near/runner-js/blob/4aeb45ee4c9593bc71ea4338a537ceb78dd96161/src/utils.ts#L10-L24
This is now fixed since we reexport parseNearAmount from near-api-js.
parseNearAmount
Today, our
toYocto
function requires a string. It should also handle valid numbers.https://github.com/near/runner-js/blob/4aeb45ee4c9593bc71ea4338a537ceb78dd96161/src/utils.ts#L10-L24