From b7067f5119fdcec0a4a857108753f9af436f0b04 Mon Sep 17 00:00:00 2001 From: lumtis Date: Mon, 28 Oct 2024 09:58:37 +0100 Subject: [PATCH] fix script --- v2/scripts/utils/get_zrc20_info.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v2/scripts/utils/get_zrc20_info.sh b/v2/scripts/utils/get_zrc20_info.sh index bf73cace..095f0145 100755 --- a/v2/scripts/utils/get_zrc20_info.sh +++ b/v2/scripts/utils/get_zrc20_info.sh @@ -30,7 +30,7 @@ SYSTEM_CONTRACT=$(cast call "$CONTRACT_ADDRESS" "SYSTEM_CONTRACT_ADDRESS()(addre ZRC20_NAME=$(cast call "$CONTRACT_ADDRESS" "name()(string)" --rpc-url "$RPC_URL" | tr -d '\n' | sed 's/"//g') ZRC20_SYMBOL=$(cast call "$CONTRACT_ADDRESS" "symbol()(string)" --rpc-url "$RPC_URL" | tr -d '\n' | sed 's/"//g') ZRC20_DECIMALS=$(cast call "$CONTRACT_ADDRESS" "decimals()(uint8)" --rpc-url "$RPC_URL" | tr -d '\n') -ZRC20_CHAIN_ID=$(cast call "$CONTRACT_ADDRESS" "CHAIN_ID()(uint256)" --rpc-url "$RPC_URL" | tr -d '\n') +ZRC20_CHAIN_ID=$(cast call "$CONTRACT_ADDRESS" "CHAIN_ID()(uint256)" --rpc-url "$RPC_URL" | tr -d '\n' | sed 's/\[.*\]//g') ZRC20_COIN_TYPE=$(cast call "$CONTRACT_ADDRESS" "COIN_TYPE()(uint256)" --rpc-url "$RPC_URL" | tr -d '\n') ZRC20_GAS_LIMIT=$(cast call "$CONTRACT_ADDRESS" "GAS_LIMIT()(uint256)" --rpc-url "$RPC_URL" | tr -d '\n' | sed 's/\[.*\]//g')