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 <smtm@taiko.xyz>
  • Loading branch information
smtmfft authored and 2manslkh committed Sep 14, 2023
1 parent dc15f56 commit 740bc83
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 740bc83

Please sign in to comment.