Skip to content

Commit

Permalink
Revert "fix(eth-lc): set timestamp before re-encoding"
Browse files Browse the repository at this point in the history
This reverts commit 4d25c3d.
  • Loading branch information
hussein-aitlahcen committed Nov 22, 2023
1 parent f43c40b commit 5f038cc
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions light-clients/ethereum-light-client/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -386,17 +386,15 @@ fn do_verify_membership(
.0
.data
.into_eth_abi_bytes(),
Path::ClientConsensusStatePath(_) => {
let mut decoded = Any::<
wasm::consensus_state::ConsensusState<cometbls::consensus_state::ConsensusState>,
>::try_from_proto_bytes(raw_value.as_ref())
.map_err(|e| Error::DecodeFromProto {
reason: format!("{e:?}"),
})?
.0;
decoded.data.timestamp = decoded.timestamp;
decoded.data.into_eth_abi_bytes()
}
Path::ClientConsensusStatePath(_) => Any::<
wasm::consensus_state::ConsensusState<cometbls::consensus_state::ConsensusState>,
>::try_from_proto_bytes(raw_value.as_ref())
.map_err(|e| Error::DecodeFromProto {
reason: format!("{e:?}"),
})?
.0
.data
.into_eth_abi_bytes(),
_ => raw_value,
};

Expand Down

0 comments on commit 5f038cc

Please sign in to comment.