From f39e65da022b6af6a3f573843743aae9337c0077 Mon Sep 17 00:00:00 2001 From: jeff <113397187+cyberhorsey@users.noreply.github.com> Date: Wed, 22 Feb 2023 18:29:42 -0800 Subject: [PATCH] feat(protocol): add isEtherReleased to Bridge (#13204) Co-authored-by: Daniel Wang <99078276+dantaik@users.noreply.github.com> --- packages/protocol/contracts/bridge/Bridge.sol | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/protocol/contracts/bridge/Bridge.sol b/packages/protocol/contracts/bridge/Bridge.sol index 4134c2b2195..89980a9bb54 100644 --- a/packages/protocol/contracts/bridge/Bridge.sol +++ b/packages/protocol/contracts/bridge/Bridge.sol @@ -158,6 +158,10 @@ contract Bridge is EssentialContract, IBridge { return _state.ctx; } + function isEtherReleased(bytes32 msgHash) public view returns (bool) { + return _state.etherReleased[msgHash]; + } + function isDestChainEnabled( uint256 _chainId ) public view returns (bool enabled) {