cli : Use ANCHOR_WALLET for migrate command (#779)

This commit is contained in:
Siong 2021-09-23 02:52:53 +08:00 committed by GitHub
parent cfba251fc4
commit bde45c2985
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -1792,6 +1792,7 @@ fn migrate(cfg_override: &ConfigOverride) -> Result<()> {
std::fs::write("deploy.js", deploy_script_host_str)?;
std::process::Command::new("node")
.arg("deploy.js")
.env("ANCHOR_WALLET", cfg.provider.wallet.to_string())
.stdout(Stdio::inherit())
.stderr(Stdio::inherit())
.output()?