Zilliqa / scilla

Scilla - A Smart Contract Intermediate Level Language
https://scilla-lang.org
GNU General Public License v3.0
240 stars 78 forks source link

Use `Stdint.Uint64` rather than `bignum` for block numbers #1018

Open vaivaswatha opened 3 years ago

vaivaswatha commented 3 years ago

The blockchain uses uint64_t to represent block numbers. Scilla should do the same.

vaivaswatha commented 3 years ago

This also raises the question of, should builtin badd check for overflows. The return type of bsub is Int256, that needs some fix too. So we'll postpone this issue / decision to v1 of Scilla.