module Eth::Abi
def encode_uint(arg, type)
def encode_uint(arg, type) raise ValueOutOfBounds, "Number out of range: #{arg}" if arg > Constant::UINT_MAX or arg < Constant::UINT_MIN real_size = type.sub_type.to_i i = arg.to_i raise ValueOutOfBounds, arg unless i >= 0 and i < 2 ** real_size return Util.zpad_int i end