forked from wormhole-foundation/wormhole
-
Notifications
You must be signed in to change notification settings - Fork 0
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
4 changed files
with
85 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/ethereum/contracts/bridge/Bridge.sol b/ethereum/contracts/bridge/Bridge.sol | ||
index 3f06757f..6c70e6fa 100644 | ||
--- a/ethereum/contracts/bridge/Bridge.sol | ||
+++ b/ethereum/contracts/bridge/Bridge.sol | ||
@@ -58,7 +58,7 @@ contract Bridge is BridgeGovernance, ReentrancyGuard { | ||
|
||
sequence = wormhole().publishMessage{ | ||
value : msg.value | ||
- }(nonce, encoded, 15); | ||
+ }(nonce, encoded, 1); | ||
} | ||
|
||
function wrapAndTransferETH(uint16 recipientChain, bytes32 recipient, uint256 arbiterFee, uint32 nonce) public payable returns (uint64 sequence) { | ||
@@ -173,7 +173,7 @@ contract Bridge is BridgeGovernance, ReentrancyGuard { | ||
|
||
sequence = wormhole().publishMessage{ | ||
value : callValue | ||
- }(nonce, encoded, 15); | ||
+ }(nonce, encoded, 1); | ||
} | ||
|
||
function updateWrapped(bytes memory encodedVm) external returns (address token) { |
12 changes: 12 additions & 0 deletions
12
ethereum/migrations/6_deploy_bridge_implementation_only.js
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,12 @@ | ||
// run with: | ||
// npm run deploy-bridge-implementation-only | ||
// e.g. Ethereum Mainnet | ||
// INFURA_KEY="" MNEMONIC="" npm run deploy-bridge-implementation-only -- --network mainnet | ||
// e.g. BSC | ||
// MNEMONIC="" npm run deploy-bridge-implementation-only -- --network binance | ||
// e.g. Polygon | ||
// MNEMONIC="" npm run deploy-bridge-implementation-only -- --network polygon | ||
const BridgeImplementation = artifacts.require("BridgeImplementation"); | ||
module.exports = async function(deployer) { | ||
await deployer.deploy(BridgeImplementation); | ||
}; |
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