Skip to content

Commit

Permalink
fix #52
Browse files Browse the repository at this point in the history
  • Loading branch information
hujw77 committed Oct 26, 2023
1 parent 4bd5926 commit bc0114c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 1 addition & 4 deletions src/Verifier.sol
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,7 @@ abstract contract Verifier is IVerifier {
bytes32[32] messageProof;
}

/// @notice Fetch message root oracle.
/// @param chainId The destination chain id.
/// @param blockNumber The block number where the message root is located.
/// @return Message root in destination chain.
/// @inheritdoc IVerifier
function merkleRoot(uint256 chainId, uint256 blockNumber) public view virtual returns (bytes32);

/// @inheritdoc IVerifier
Expand Down
6 changes: 6 additions & 0 deletions src/interfaces/IVerifier.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
pragma solidity 0.8.17;

interface IVerifier {
/// @notice Fetch message root oracle.
/// @param chainId The destination chain id.
/// @param blockNumber The block number where the message root is located.
/// @return Message root in destination chain.
function merkleRoot(uint256 chainId, uint256 blockNumber) external view returns (bytes32);

/// @notice Verify message proof
/// @dev Message proof provided by relayer. Oracle should provide message root of
/// source chain, and verify the merkle proof of the message hash.
Expand Down

0 comments on commit bc0114c

Please sign in to comment.