huff-language/huffmate

issue: ERC20 decimals should be uint8

eugenioclrc opened this issue · 3 comments

According to ERC20 especification the decimals shoud be defined as;

function decimals() public view returns (uint8)

But in ERC20.huff#L29 this is the definition;

#define function decimals() nonpayable returns (uint256)

Shouldnt be this definition?

#define function decimals() nonpayable returns (uint8)

Good spot, we will get that fixed, thank you!

Submit this pull request with a proposed fix;
#105

Thank you!