icon-project / icon-bridge

The centralized bridge of ICON
Apache License 2.0
21 stars 15 forks source link

RLP Decode cannot decode extremely large values #457

Open izyak opened 2 years ago

izyak commented 2 years ago

Overview

Trying to RLP decode a RLP encoded large value results in error. This arises when trying to decode values which are around uint256 limit, 2 256 - 1. It works for values around 10 76 or less.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Try to transfer tokens worth 10 77 or try to set token limit over 10 77 to BSC
  2. The value won't be set on BSC
  3. It sends response back to ICON with BTP Error.

Expected Behavior

RLP decode should support upto 2 ** 256 - 1 integer value

CyrusVorwald commented 2 years ago

Please add the associated sprints, story points, epics, and releases.