harmony-one / sdk

Javascript SDK of Harmony protocol.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Contract call return of uint8 returns incorrect value

michaelotis opened this issue · comments

A call to a public variable inside a contract that is of type uint8 returns integer value and not hex bytes value. For example, a call to a token contract's decimal variable will return 12 and not 0x12, which would equal an integer of 18.