Skip to content

Commit

Permalink
feat(node): set ICP init local config (#1030)
Browse files Browse the repository at this point in the history
  • Loading branch information
frdomovic authored Dec 20, 2024
1 parent bb54d55 commit 0c25326
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions crates/merod/src/cli/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,11 @@ impl InitCommand {
ContextConfig {
client: ClientConfig {
signer: ClientSigner {
selected: ClientSelectedSigner::Relayer,
selected: match self.protocol {
ConfigProtocol::Near => ClientSelectedSigner::Relayer,
ConfigProtocol::Starknet => ClientSelectedSigner::Relayer,
ConfigProtocol::Icp => ClientSelectedSigner::Local,
},
relayer: ClientRelayerSigner { url: relayer },
local: LocalConfig {
near: [
Expand Down Expand Up @@ -286,7 +290,7 @@ impl InitCommand {
network: match self.protocol {
ConfigProtocol::Near => "testnet".into(),
ConfigProtocol::Starknet => "sepolia".into(),
ConfigProtocol::Icp => "ic".into(),
ConfigProtocol::Icp => "local".into(),
},
protocol: self.protocol.as_str().to_owned(),
contract_id: match self.protocol {
Expand Down

0 comments on commit 0c25326

Please sign in to comment.