I am trying to translate solidity code in smartpy .
bytes memory rlpBytes;
rlpBytes = abi.encodePacked(rlpBytes, _link.encodeString());
rlpBytes = abi.encodePacked( rlpBytes.length.addLength(false), rlpBytes );
here _link is a string data type.
I am using the below function of rlp for decoding https://github.com/airgap-it/ibcf/blob/291964a41ebecc25961435e106086854390662c5/contracts/tezos/libs/utils.py#L179
I am using the function in this way , rlp_bytes = sp.local("rlp_bytes", sp.build_lambda(rlp.Encoder.encode_string)(link))
But i got stuck on the second line rlpBytes = abi.encodePacked( rlpBytes.length.addLength(false), rlpBytes );
Can someone help me out here on this line ? I am having trouble translating this .