-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
26 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,12 +13,12 @@ import "./LibBridgeStatus.sol"; | |
/** | ||
* @author dantaik <[email protected]> | ||
*/ | ||
library LibBridgeReturn { | ||
library LibBridgeRelease { | ||
using LibBridgeData for IBridge.Message; | ||
|
||
event EtherReleased(bytes32 indexed msgHash, address to, uint256 amount); | ||
|
||
function returnEther( | ||
function releaseEther( | ||
LibBridgeData.State storage state, | ||
AddressResolver resolver, | ||
IBridge.Message calldata message, | ||
|
@@ -46,7 +46,7 @@ library LibBridgeReturn { | |
if (releaseAmount > 0) { | ||
address ethVault = resolver.resolve("ether_vault", true); | ||
if (ethVault != address(0)) { | ||
EtherVault(payable(ethVault)).returnEtherTo( | ||
EtherVault(payable(ethVault)).releaseEtherTo( | ||
message.owner, | ||
releaseAmount | ||
); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters