From bdd3e4e27981c0cf40e91a2a677402fa73dcc98c Mon Sep 17 00:00:00 2001 From: Hussein Ait Lahcen Date: Mon, 9 Oct 2023 18:47:38 +0200 Subject: [PATCH] fix(evm): cometbls - ensure non adjacent valroot is taken from header --- evm/contracts/clients/CometblsClient.sol | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/evm/contracts/clients/CometblsClient.sol b/evm/contracts/clients/CometblsClient.sol index 806479fc52..6a2678a7f6 100644 --- a/evm/contracts/clients/CometblsClient.sol +++ b/evm/contracts/clients/CometblsClient.sol @@ -191,7 +191,9 @@ contract CometblsClient is ILightClient { untrustedValidatorsHash = trustedValidatorsHash; } else { untrustedValidatorsHash = header - .untrusted_validator_set_root + .signed_header + .header + .validators_hash .toBytes32(0); }