Skip to content

Commit

Permalink
adds deploy function
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianschu committed Dec 16, 2021
1 parent 8efca7b commit 2125464
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions deploy/06_deploy_badger_contracts.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const deployFunction = async ({ getNamedAccounts, deployments, network }) => {
console.log(`Deploying on network ${network.name}`);

const { deploy } = deployments;
const { root } = await getNamedAccounts();

await deploy("Badger", {
from: root,
args: ["https://gateway.pinata.cloud/ipfs/"],
log: true,
});
};

module.exports = deployFunction;
module.exports.tags = ["Badger"];

0 comments on commit 2125464

Please sign in to comment.