From 1107889077b55cf4718b16e6f30de369949aadd4 Mon Sep 17 00:00:00 2001 From: nolash Date: Fri, 3 Sep 2021 00:12:45 +0200 Subject: [PATCH] Remove commented code --- apps/contract-migration/reset.sh | 14 -------------- apps/contract-migration/seed_cic_eth.sh | 3 --- 2 files changed, 17 deletions(-) diff --git a/apps/contract-migration/reset.sh b/apps/contract-migration/reset.sh index 3602f178..d1a62b9f 100755 --- a/apps/contract-migration/reset.sh +++ b/apps/contract-migration/reset.sh @@ -9,7 +9,6 @@ set -e if [ ! -z $DEV_ETH_GAS_PRICE ]; then gas_price_arg="--gas-price $DEV_ETH_GAS_PRICE" fee_price_arg="--fee-price $DEV_ETH_GAS_PRICE" - #>&2 echo using static gas price $DEV_ETH_GAS_PRICE fi # Wait for the backend to be up, if we know where it is. @@ -109,19 +108,6 @@ fi mkdir -p $DEV_DATA_DIR >&2 echo using data dir $DEV_DATA_DIR for environment variable dump -# this is consumed in downstream services to set environment variables -#cat << EOF > $DEV_DATA_DIR/.env -#export CIC_REGISTRY_ADDRESS=$CIC_REGISTRY_ADDRESS -#export CIC_TRUST_ADDRESS=$DEV_ETH_ACCOUNT_CONTRACT_DEPLOYER -#export CIC_DECLARATOR_ADDRESS=$CIC_DECLARATOR_ADDRESS -#EOF - -#cat ./envlist | bash from_env.sh > $DEV_DATA_DIR/.env_all -#cat ./envlist -# popd - -#CIC_REGISTRY_ADDRESS=$CIC_REGISTRY_ADDRESS -#CIC_DECLARATOR_ADDRESS=$CIC_DECLARATOR_ADDRESS confini-dump --schema-module chainlib.eth.data.config --schema-module cic_eth.data.config --schema-dir ./config --prefix export > ${DEV_DATA_DIR}/env_reset cat ${DEV_DATA_DIR}/env_reset diff --git a/apps/contract-migration/seed_cic_eth.sh b/apps/contract-migration/seed_cic_eth.sh index bbd08e74..bf2f8dc1 100755 --- a/apps/contract-migration/seed_cic_eth.sh +++ b/apps/contract-migration/seed_cic_eth.sh @@ -44,7 +44,6 @@ cic-eth-tag -i $CHAIN_SPEC TRANSFER_AUTHORIZATION_OWNER $DEV_ETH_ACCOUNT_TRANSFE >&2 echo "create account for accounts index writer" DEV_ETH_ACCOUNT_ACCOUNT_REGISTRY_WRITER=`CONFINI_DIR=$empty_config_dir cic-eth-create $debug --redis-host $REDIS_HOST --redis-host-callback=$REDIS_HOST --redis-port-callback=$REDIS_PORT --no-register` -#echo DEV_ETH_ACCOUNT_ACCOUNT_REGISTRY_WRITER=$DEV_ETH_ACCOUNT_ACCOUNT_REGISTRY_WRITER >> $env_out_file cic-eth-tag -i $CHAIN_SPEC ACCOUNT_REGISTRY_WRITER $DEV_ETH_ACCOUNT_ACCOUNT_REGISTRY_WRITER >&2 echo "add acccounts index writer account as writer on contract" eth-accounts-index-writer -s -u -y $WALLET_KEY_FILE -i $CHAIN_SPEC -p $ETH_PROVIDER -e $account_index_address -ww $debug $DEV_ETH_ACCOUNT_ACCOUNT_REGISTRY_WRITER @@ -78,8 +77,6 @@ export DEV_ETH_SARAFU_TOKEN_ADDRESS=$DEV_ETH_RESERVE_ADDRESS >&2 echo "transfer tokens to token gifter address" >&2 erc20-transfer -s -u -y $WALLET_KEY_FILE -i $CHAIN_SPEC -p $ETH_PROVIDER --fee-limit 100000 -e $reserve_address -w $debug -a $DEV_ETH_ACCOUNT_SARAFU_GIFTER ${DEV_TOKEN_AMOUNT:0:-1} -#echo -n 0 > $init_level_file - #CONFINI_DIR=$_CONFINI_DIR # Remove the SEND (8), QUEUE (16) and INIT (2) locks (or'ed), set by default at migration cic-eth-ctl -i $CHAIN_SPEC unlock INIT