We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import org.kethereum.functions.rlp.toIntFromRLP import org.kethereum.functions.rlp.toRLP class RLPTest{ @Test fun testIntRLP(){ val int = 1838383984 val rlp = int.toRLP() println(rlp.bytes.size) val int1 = rlp.toIntFromRLP() Assert.assertEquals(int, int1) } }
output:
4 java.lang.AssertionError: Expected :1838383984 Actual :1821541232
The text was updated successfully, but these errors were encountered:
Thanks for the report! Will try to have a look today
Sorry, something went wrong.
I can confirm this bug and have a fix. Will add your int to the test-vectors. Thanks so much for reporting!!
Fix toIntFromRLP for negative byte values - closes #49
3b33b2f
Also extend text-vectors to cover this case
e9470ed
Fixed in v0.66 - thanks so much for the quality bug report - love reports that contain a test!
No branches or pull requests
output:
The text was updated successfully, but these errors were encountered: