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

Allow requirements for contracts deployed with multisig #1394

Merged
merged 2 commits into from
Mar 27, 2024
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
9 changes: 7 additions & 2 deletions components/clarinet-deployments/src/requirements.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
use clarinet_files::{FileAccessor, FileLocation};
use clarity_repl::{
clarity::{vm::types::QualifiedContractIdentifier, ClarityVersion, StacksEpochId},
clarity::{
chainstate::StacksAddress, vm::types::QualifiedContractIdentifier, Address, ClarityVersion,
StacksEpochId,
},
repl::{DEFAULT_CLARITY_VERSION, DEFAULT_EPOCH},
};
use reqwest;
@@ -57,7 +60,9 @@ pub async fn retrieve_contract(
));
}

let is_mainnet = contract_deployer.starts_with("SP");
let is_mainnet = StacksAddress::from_string(&contract_deployer)
.unwrap()
.is_mainnet();
let stacks_node_addr = if is_mainnet {
"https://api.hiro.so".to_string()
} else {