permaweb / aos

An operating system for AO: The hyper parallel computer
https://ao.g8way.io
Other
74 stars 52 forks source link

Fix utils.toNumber() in token.lua #289

Closed dvinubius closed 3 months ago

dvinubius commented 3 months ago

Fixes https://github.com/permaweb/aos/issues/288

The current implementation errors on bint inputs. Should be using bint.tonumber(a) instead of the native tonumber(a)