/ migrations / deploy.ts
deploy.ts
1 // Migrations are an early feature. Currently, they're nothing more than this 2 // single deploy script that's invoked from the CLI, injecting a provider 3 // configured from the workspace's Anchor.toml. 4 5 const anchor = require("@coral-xyz/anchor"); 6 7 module.exports = async function(provider) { 8 // Configure client to use the provider. 9 anchor.setProvider(provider); 10 11 // Add your deploy script here. 12 };