Skip to content

Commit

Permalink
Merge pull request #216 from iotubeproject/fix_refetch_script
Browse files Browse the repository at this point in the history
fix refetch script
  • Loading branch information
CoderZhi authored Dec 4, 2023
2 parents 98f2674 + 88989c4 commit 1f38734
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/refetch2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ chainmap["iotex"]="9081"
chainmap["ethereum"]="9083"
chainmap["matic"]="9085"
chainmap["bsc"]="9087"
port=${chainmap[$chain]}
echo "refetch from port:${port}"
curl -X POST localhost:$port/fetch -d '{"heights": '$@'}'
curl -X POST http://localhost:$port/fetch -d '{"heights": "'$@'"}'
echo "...done"

0 comments on commit 1f38734

Please sign in to comment.