Skip to content

Commit

Permalink
fix: remove keyType form init and gentx
Browse files Browse the repository at this point in the history
  • Loading branch information
PoisonPhang committed Feb 7, 2024
1 parent d3e8d8b commit f0b4ee5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions networks/genesis/devnet.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
pkgs.runCommand "node-id" { } ''
export HOME=$(pwd)
${uniond} init testnet bn254 --chain-id ${chainId} --home .
${uniond} init testnet --chain-id ${chainId} --home .
mkdir -p $out
mv ./config/node_key.json $out/${name}
'';
Expand All @@ -34,7 +34,7 @@
export HOME=$(pwd)
mkdir -p $out
${uniond} init testnet bn254 --chain-id ${chainId} --home $out
${uniond} init testnet --chain-id ${chainId} --home $out
echo ${alice} | ${uniond} keys add \
--recover ${genesisAccountName} \
Expand Down Expand Up @@ -483,7 +483,7 @@
}.json | jq ."pub_key"."value"`
PUBKEY="{\"@type\":\"/cosmos.crypto.bn254.PubKey\",\"key\":$PUBKEY}"
mkdir -p $out
${uniond} genesis gentx val-${toString i} 1000000000000000000000stake "bn254" --keyring-backend test --chain-id ${chainId} --home ${home} --ip "0.0.0.0" --pubkey $PUBKEY --moniker validator-${toString i} --output-document $out/valgentx-${
${uniond} genesis gentx val-${toString i} 1000000000000000000000stake --keyring-backend test --chain-id ${chainId} --home ${home} --ip "0.0.0.0" --pubkey $PUBKEY --moniker validator-${toString i} --output-document $out/valgentx-${
toString i
}.json
'')
Expand Down
2 changes: 1 addition & 1 deletion networks/services/uniond.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ let
getNodeID = nodeFile:
pkgs.runCommand "get-node-id" { } ''
export HOME=$(pwd)
${uniond}/bin/uniond init testnet bn254 --home .
${uniond}/bin/uniond init testnet --home .
cp ${devnet-validator-node-ids}/${nodeFile} ./config/node_key.json
NODE_ID=$(${uniond}/bin/uniond tendermint show-node-id --home .)
echo -n $NODE_ID > $out
Expand Down
1 change: 0 additions & 1 deletion unionvisor/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ impl InitCmd {
args: vec![
OsString::from("init"),
OsString::from(self.moniker.clone()),
OsString::from("bn254"),
OsString::from("--chain-id"),
OsString::from(&self.network),
],
Expand Down

0 comments on commit f0b4ee5

Please sign in to comment.