Skip to content

Commit

Permalink
v0.15.0 (#963)
Browse files Browse the repository at this point in the history
fixes #948 

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Refactor**
  - Simplified the verification process in the Ethereum light client.
  - Streamlined timestamp handling in the IBC module.

- **New Features**
  - Added a new upgrade feature for version 0.15.0 in the application.

- **Documentation**
- Documented the addition of the `Timestamp` field in consensus-related
structs.

- **Style**
  - Established a new versioning constant for upgrade management.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
  • Loading branch information
hussein-aitlahcen authored Nov 22, 2023
2 parents 5729d9d + 5f038cc commit b2f1758
Show file tree
Hide file tree
Showing 8 changed files with 437 additions and 995 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
Loading

0 comments on commit b2f1758

Please sign in to comment.