2022-03-15 12:44:47 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
if [ -z "$1" ]; then
|
|
|
|
echo "Usage: ./update_deps.sh <revision>"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
REV="$1"
|
|
|
|
root="$(git rev-parse --show-toplevel)"
|
|
|
|
|
|
|
|
cd "$root" || exit 1
|
|
|
|
go get github.com/nspcc-dev/neo-go/pkg/interop@"$REV"
|
|
|
|
go mod tidy
|
|
|
|
|
|
|
|
for dir in "$root"/examples/*/; do
|
|
|
|
cd "$dir" || exit 1
|
|
|
|
go get github.com/nspcc-dev/neo-go/pkg/interop@"$REV"
|
2023-03-28 16:50:27 +00:00
|
|
|
go mod tidy
|
2022-03-15 12:44:47 +00:00
|
|
|
done
|
2022-09-16 15:14:13 +00:00
|
|
|
|
|
|
|
cd "$root"/internal/contracts/oracle_contract || exit 1
|
|
|
|
go get github.com/nspcc-dev/neo-go/pkg/interop@"$REV"
|
|
|
|
go mod tidy
|