Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #3527 allow dev deploy deploy the package to another address #3528

Merged
merged 3 commits into from
Jul 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions cmd/starcoin/src/dev/deploy_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::cli_state::CliState;
use crate::dev::dev_helper;
use crate::view::{ExecuteResultView, TransactionOptions};
use crate::StarcoinOpt;
use anyhow::{ensure, Result};
use anyhow::Result;
use clap::Parser;
use scmd::{CommandAction, ExecContext};
use starcoin_vm_types::transaction::TransactionPayload;
Expand Down Expand Up @@ -41,9 +41,7 @@ impl CommandAction for DeployCommand {
let package_address = package.package_address();
let mut transaction_opts = opt.transaction_opts.clone();
match transaction_opts.sender.as_ref() {
Some(sender) => {
ensure!(*sender == package_address, "please use package address({}) account to deploy package, currently sender is {}.", package_address,sender);
}
Some(_sender) => {}
None => {
eprintln!(
"Use package address ({}) as transaction sender",
Expand Down