Jayant Krishnamurthy 2 vuotta sitten
vanhempi
sitoutus
02498ab42f
1 muutettua tiedostoa jossa 4 lisäystä ja 2 poistoa
  1. 4 2
      cosmwasm/tools/deploy-pyth-bridge.js

+ 4 - 2
cosmwasm/tools/deploy-pyth-bridge.js

@@ -184,7 +184,7 @@ if (argv.codeId !== undefined) {
 if (argv.instantiate) {
   console.log("Instantiating a contract");
 
-  async function instantiate(codeId, inst_msg) {
+  async function instantiate(codeId, inst_msg, label) {
     var address;
     await wallet
       .createAndSignTx({
@@ -194,6 +194,8 @@ if (argv.instantiate) {
             wallet.key.accAddress,
             codeId,
             inst_msg,
+            undefined,
+            label
           ),
         ],
       })
@@ -217,7 +219,7 @@ if (argv.instantiate) {
     return address;
   }
 
-  const contractAddress = await instantiate(codeId, pythConfig);
+  const contractAddress = await instantiate(codeId, pythConfig, "pyth");
 
   console.log(`Deployed Pyth contract at ${contractAddress}`);
 }