|
@@ -303,9 +303,9 @@ pub fn ts_deploy_script() -> &'static str {
|
|
// single deploy script that's invoked from the CLI, injecting a provider
|
|
// single deploy script that's invoked from the CLI, injecting a provider
|
|
// configured from the workspace's Anchor.toml.
|
|
// configured from the workspace's Anchor.toml.
|
|
|
|
|
|
-const anchor = require("@coral-xyz/anchor");
|
|
|
|
|
|
+import * as anchor from "@coral-xyz/anchor";
|
|
|
|
|
|
-module.exports = async function (provider) {
|
|
|
|
|
|
+module.exports = async function (provider: anchor.AnchorProvider) {
|
|
// Configure client to use the provider.
|
|
// Configure client to use the provider.
|
|
anchor.setProvider(provider);
|
|
anchor.setProvider(provider);
|
|
|
|
|