Commit e527c876 by github-actions

Transpile 1b6b9f00

parent d14638e1
...@@ -29,5 +29,5 @@ jobs: ...@@ -29,5 +29,5 @@ jobs:
- run: npm ci - run: npm ci
if: steps.cache.outputs.cache-hit != 'true' if: steps.cache.outputs.cache-hit != 'true'
- run: bash scripts/upgrade-safe/git-user-config.sh - run: bash scripts/upgrade-safe/git-user-config.sh
- run: bash scripts/upgrade-safe/transpile-branch.sh master origin/master - run: bash scripts/upgrade-safe/transpile-onto.sh master origin/master
- run: git push origin master - run: git push origin master
# Changelog for Upgrade Safe variant
## 3.2.0 (2020-11-11)
* First release of Upgrade Safe variant, replacing Ethereum Package variant which is now deprecated.
### Upgrading from OpenZeppelin Contracts Ethereum Package
* Previously only contracts were renamed with the `UpgradeSafe` suffix. In order to improve compatibility between
Upgrade Safe variant and the vanila OpenZeppelin Contracts package, now all contracts, interfaces, and libraries have
the `UpgradeSafe` suffix. The only exception is the `Initializable` contract which retains its original name.
# Changelog # Changelog
## Unreleased ## Unreleased
......
...@@ -3,26 +3,36 @@ ...@@ -3,26 +3,36 @@
set -euo pipefail set -euo pipefail
if [ $# -lt 1 ]; then if [ $# -lt 1 ]; then
echo "usage: bash $0 <branch> [base]" >&2 echo "usage: bash $0 <target> [base]" >&2
exit 1 exit 1
fi fi
set -x set -x
branch="$1" target="$1"
base="${2:-}" base="${2-}"
bash scripts/upgrade-safe/transpile.sh bash scripts/upgrade-safe/transpile.sh
commit="$(git rev-parse --short HEAD)" commit="$(git rev-parse --short HEAD)"
branch="$(git rev-parse --abbrev-ref HEAD)"
git add contracts git add contracts
git checkout --orphan "$branch"
if [ -n "$base" ]; then git checkout --quiet --detach
git reset --soft "$base"
if git rev-parse --quiet --verify "$target"; then
git reset --soft "$target"
git checkout "$target"
else
git checkout --orphan "$target"
if [ -n "$base" ]; then
git reset --soft "$base"
fi
fi fi
if ! git diff --cached --quiet; then if ! git diff --quiet --cached; then
git commit -m "Transpile $commit" git commit -m "Transpile $commit"
fi fi
git checkout "$branch"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment