Centralize explorer bridge destination selectors
This commit is contained in:
@@ -36,3 +36,8 @@ ccip_destination_field_by_name() {
|
||||
'.chains[] | select(.name == $name) | .[$field] // empty' \
|
||||
"$CCIP_DESTINATION_MATRIX_FILE"
|
||||
}
|
||||
|
||||
ccip_destination_selector_by_name() {
|
||||
local chain_name="${1:-}"
|
||||
ccip_destination_field_by_name "$chain_name" selector
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user