diff --git a/plasma_cash/root_chain/contracts/Libraries/RLP.sol b/plasma_cash/root_chain/contracts/Libraries/RLP.sol index cdf5b71..91273ac 100644 --- a/plasma_cash/root_chain/contracts/Libraries/RLP.sol +++ b/plasma_cash/root_chain/contracts/Libraries/RLP.sol @@ -129,10 +129,8 @@ library RLP { uint rStartPos; uint len; (rStartPos, len) = _decode(self); - require(len == 20); - assembly { - data := div(mload(rStartPos), exp(256, 12)) - } + require(len <= 20); + return address(toUint(self)); } /// @dev Return the RLP encoded bytes.