From d3b878d27a7ab93ad1b2aa5e5f912654a9b770a4 Mon Sep 17 00:00:00 2001 From: 0xaptosj <129789810+0xaptosj@users.noreply.github.com> Date: Mon, 24 Jun 2024 14:08:03 -0700 Subject: [PATCH] remove console log --- .../scripts/move/upgrade.js | 32 +++++++++---------- .../scripts/move/upgrade.js | 32 +++++++++---------- 2 files changed, 30 insertions(+), 34 deletions(-) diff --git a/templates/digital-asset-template/scripts/move/upgrade.js b/templates/digital-asset-template/scripts/move/upgrade.js index 8fc5c201..0fe9f442 100644 --- a/templates/digital-asset-template/scripts/move/upgrade.js +++ b/templates/digital-asset-template/scripts/move/upgrade.js @@ -14,22 +14,20 @@ async function publish() { const move = new cli.Move(); - move - .upgradeObjectPackage({ - packageDirectoryPath: "move", - objectAddress: process.env.VITE_MODULE_ADDRESS, - namedAddresses: { - // Upgrade module from an object - launchpad_addr: process.env.VITE_MODULE_ADDRESS, - // This is the address you want to use to create collection with, e.g. an address in Petra so you can create collection in UI using Petra - initial_creator_addr: process.env.VITE_COLLECTION_CREATOR_ADDRESS, - // Our contract depends on the token-minter contract to provide some common functionalities like managing refs and mint stages - // You can read the source code of it here: https://github.com/aptos-labs/token-minter/ - // Please find it on the network you are using, This is testnet deployment - minter: "0x3c41ff6b5845e0094e19888cba63773591be9de59cafa9e582386f6af15dd490", - }, - profile: process.env.VITE_APP_NETWORK, - }) - .then(console.log); + move.upgradeObjectPackage({ + packageDirectoryPath: "move", + objectAddress: process.env.VITE_MODULE_ADDRESS, + namedAddresses: { + // Upgrade module from an object + launchpad_addr: process.env.VITE_MODULE_ADDRESS, + // This is the address you want to use to create collection with, e.g. an address in Petra so you can create collection in UI using Petra + initial_creator_addr: process.env.VITE_COLLECTION_CREATOR_ADDRESS, + // Our contract depends on the token-minter contract to provide some common functionalities like managing refs and mint stages + // You can read the source code of it here: https://github.com/aptos-labs/token-minter/ + // Please find it on the network you are using, This is testnet deployment + minter: "0x3c41ff6b5845e0094e19888cba63773591be9de59cafa9e582386f6af15dd490", + }, + profile: process.env.VITE_APP_NETWORK, + }); } publish(); diff --git a/templates/fungible-asset-template/scripts/move/upgrade.js b/templates/fungible-asset-template/scripts/move/upgrade.js index 3b09947a..716c6448 100644 --- a/templates/fungible-asset-template/scripts/move/upgrade.js +++ b/templates/fungible-asset-template/scripts/move/upgrade.js @@ -14,22 +14,20 @@ async function publish() { const move = new cli.Move(); - move - .upgradeObjectPackage({ - packageDirectoryPath: "move", - objectAddress: process.env.VITE_MODULE_ADDRESS, - namedAddresses: { - // Upgrade module from an object - launchpad_addr: process.env.VITE_MODULE_ADDRESS, - // This is the address you want to use to create fungible asset with, e.g. an address in Petra so you can create fungible asset in UI using Petra - initial_creator_addr: process.env.VITE_FA_CREATOR_ADDRESS, - // Our contract depends on the token-minter contract to provide some common functionalities like managing refs and mint stages - // You can read the source code of it here: https://github.com/aptos-labs/token-minter/ - // Please find it on the network you are using, This is testnet deployment - minter: "0x3c41ff6b5845e0094e19888cba63773591be9de59cafa9e582386f6af15dd490", - }, - profile: process.env.VITE_APP_NETWORK, - }) - .then(console.log); + move.upgradeObjectPackage({ + packageDirectoryPath: "move", + objectAddress: process.env.VITE_MODULE_ADDRESS, + namedAddresses: { + // Upgrade module from an object + launchpad_addr: process.env.VITE_MODULE_ADDRESS, + // This is the address you want to use to create fungible asset with, e.g. an address in Petra so you can create fungible asset in UI using Petra + initial_creator_addr: process.env.VITE_FA_CREATOR_ADDRESS, + // Our contract depends on the token-minter contract to provide some common functionalities like managing refs and mint stages + // You can read the source code of it here: https://github.com/aptos-labs/token-minter/ + // Please find it on the network you are using, This is testnet deployment + minter: "0x3c41ff6b5845e0094e19888cba63773591be9de59cafa9e582386f6af15dd490", + }, + profile: process.env.VITE_APP_NETWORK, + }); } publish();