Commit a3bb363d authored by Kelvin Fichter's avatar Kelvin Fichter Committed by GitHub

Hotfix for decoding rlp values in state transitioner (#92)

parent acf84ae9
...@@ -275,9 +275,8 @@ contract OVM_StateTransitioner is Lib_AddressResolver, OVM_FraudContributor, iOV ...@@ -275,9 +275,8 @@ contract OVM_StateTransitioner is Lib_AddressResolver, OVM_FraudContributor, iOV
ovmStateManager.getAccountStorageRoot(_ovmContractAddress) ovmStateManager.getAccountStorageRoot(_ovmContractAddress)
); );
bytes memory value = Lib_RLPReader.readBytes(encodedValue);
if (exists == true) { if (exists == true) {
bytes memory value = Lib_RLPReader.readBytes(encodedValue);
require( require(
keccak256(value) == keccak256(abi.encodePacked(_value)), keccak256(value) == keccak256(abi.encodePacked(_value)),
"Provided storage slot value is invalid." "Provided storage slot value is invalid."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment