Bladeren bron

devnet: fix generation of deterministic contract addresses

We previously had an extra contract that was deleted, which
changed the contract addresses.

As a workaround, deploy Wormhole twice to fix the tests.
Leo 5 jaren geleden
bovenliggende
commit
dc7a2147b7
2 gewijzigde bestanden met toevoegingen van 5 en 1 verwijderingen
  1. 3 1
      devnet/bridge.yaml
  2. 2 0
      ethereum/migrations/1_initial_migration.js

+ 3 - 1
devnet/bridge.yaml

@@ -46,7 +46,9 @@ spec:
             - -ethRPC
             - ws://eth-devnet:8545
             - -ethContract
-            - 0x5b1869D9A4C187F2EAa108f3062412ecf0526b24
+            - 0xCfEB869F69431e42cdB54A4F4f105C19C080A601
+            - -ethConfirmations
+            - '1'
           ports:
             - containerPort: 8999
               name: p2p

+ 2 - 0
ethereum/migrations/1_initial_migration.js

@@ -2,6 +2,8 @@ const WrappedAsset = artifacts.require("WrappedAsset");
 const Wormhole = artifacts.require("Wormhole");
 
 module.exports = async function (deployer) {
+    await deployer.deploy(WrappedAsset);
+    // FIXME: this offsets the deleted Schnorr contract to keep the previous deterministic addresses
     await deployer.deploy(WrappedAsset);
     await deployer.deploy(Wormhole, {
         keys: ["0x7E5F4552091A69125d5DfCb7b8C2659029395Bdf"],