Skip to content

Commit

Permalink
remove console log
Browse files Browse the repository at this point in the history
  • Loading branch information
0xaptosj committed Jun 24, 2024
1 parent 7340bfc commit 298411a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 34 deletions.
32 changes: 15 additions & 17 deletions templates/digital-asset-template/scripts/move/upgrade.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
32 changes: 15 additions & 17 deletions templates/fungible-asset-template/scripts/move/upgrade.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

0 comments on commit 298411a

Please sign in to comment.