Centralize explorer bridge destination selectors
This commit is contained in:
@@ -7,6 +7,7 @@ set -euo pipefail
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
|
||||
source "$PROJECT_ROOT/scripts/lib/ccip-destinations.sh"
|
||||
|
||||
# Colors
|
||||
RED='\033[0;31m'
|
||||
@@ -34,7 +35,7 @@ LINK_TOKEN="0x514910771AF9Ca656af840dff83E8264EcF986CA"
|
||||
|
||||
# Default values
|
||||
AMOUNT_ETH="${1:-0.001}"
|
||||
DEST_SELECTOR="${2:-5009297550715157269}" # Ethereum Mainnet
|
||||
DEST_SELECTOR="${2:-$(ccip_destination_selector_by_name "Ethereum Mainnet")}" # Ethereum Mainnet
|
||||
|
||||
log_info "========================================="
|
||||
log_info "Fee Calculation Verification"
|
||||
@@ -147,4 +148,3 @@ else
|
||||
log_info " 3. Fee calculation is handled by a separate contract"
|
||||
fi
|
||||
log_info ""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user