-
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.
fix(bridge): Token Vault sendEther messages with processing fees are …
…impossible to send (#277) * tokenVault deposit value should be msg.value - processingFee for sendEther * test names * Update TokenVault.sol * dup require Co-authored-by: dantaik <[email protected]>
- Loading branch information
1 parent
b1a10b0
commit 10d9bbc
Showing
3 changed files
with
174 additions
and
3 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
16 changes: 16 additions & 0 deletions
16
packages/protocol/contracts/test/thirdparty/TestMessageSender.sol
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.9; | ||
|
||
import "../../bridge/IBridge.sol"; | ||
|
||
contract TestMessageSender { | ||
|
||
bytes32 signal = 0x3fd54831f488a22b28398de0c567a3b064b937f54f81739ae9bd545967f3abab; | ||
|
||
function sendMessage( | ||
IBridge.Message calldata message | ||
) external payable returns (bytes32) { | ||
message; | ||
return signal; | ||
} | ||
} |
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