From 0093c7f402ede1bc1a171decff48e32102815e7d Mon Sep 17 00:00:00 2001 From: smeb y <48400087+a3165458@users.noreply.github.com> Date: Fri, 12 Apr 2024 15:48:24 +0800 Subject: [PATCH] Update 0g.sh --- 0g.sh | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/0g.sh b/0g.sh index 527a9b0..4c5217b 100644 --- a/0g.sh +++ b/0g.sh @@ -67,12 +67,6 @@ function install_node() { make install evmosd version - # 配置evmosd - echo 'export MONIKER="My_Node"' >> ~/.bash_profile - echo 'export WALLET_NAME="wallet"' >> ~/.bash_profile - - source $HOME/.bash_profile - # 获取初始文件和地址簿 cd $HOME evmosd init $MONIKER --chain-id zgtendermint_9000-1 @@ -158,12 +152,14 @@ function uninstall_node() { # 创建钱包 function add_wallet() { - evmosd keys add wallet + read -p "请输入你想设置的钱包名称: " wallet_name + evmosd keys add $wallet_name } # 导入钱包 function import_wallet() { - evmosd keys add wallet --recover + read -p "请输入你想设置的钱包名称: " wallet_name + evmosd keys add $wallet_name --recover } # 查询余额