Files
evm/update_evm_to_v2.sh
2025-08-02 12:47:52 -05:00

15 lines
599 B
Bash
Executable File

#!/bin/bash
# Update all imports from github.com/luxfi/evm/ to github.com/luxfi/evm/
# Also update node imports to use v2
echo "Updating EVM imports to v2..."
# Find all Go files and update imports
find . -name "*.go" -type f -not -path "./vendor/*" -not -path "./.git/*" | while read -r file; do
# Update imports from github.com/luxfi/evm/ to github.com/luxfi/evm/
sed -i '' 's|"github.com/luxfi/evm/|"github.com/luxfi/evm/|g' "$file"
# Also update node imports to v2
sed -i '' 's|"github.com/luxfi/node/|"github.com/luxfi/node/|g' "$file"
done
echo "EVM import update complete!"