Skip to content

Commit

Permalink
fix(protocol): remove proof from getInstance calculation (#14623)
Browse files Browse the repository at this point in the history
Signed-off-by: smtmfft <[email protected]>
  • Loading branch information
smtmfft authored Aug 31, 2023
1 parent c8969b6 commit 2eedc33
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/protocol/contracts/L1/libs/LibProving.sol
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,13 @@ library LibProving {
returns (bytes32 instance)
{
if (evidence.prover == LibUtils.ORACLE_PROVER) return 0;
else return keccak256(abi.encode(evidence));
else return keccak256(abi.encode(
evidence.metaHash,
evidence.parentHash,
evidence.blockHash,
evidence.signalRoot,
evidence.graffiti,
evidence.prover
));
}
}

0 comments on commit 2eedc33

Please sign in to comment.