Commit e527c876 by github-actions

Transpile 1b6b9f00

parent d14638e1
......@@ -29,5 +29,5 @@ jobs:
- run: npm ci
if: steps.cache.outputs.cache-hit != 'true'
- 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
# 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
## Unreleased
......
......@@ -3,26 +3,36 @@
set -euo pipefail
if [ $# -lt 1 ]; then
echo "usage: bash $0 <branch> [base]" >&2
echo "usage: bash $0 <target> [base]" >&2
exit 1
fi
set -x
branch="$1"
base="${2:-}"
target="$1"
base="${2-}"
bash scripts/upgrade-safe/transpile.sh
commit="$(git rev-parse --short HEAD)"
branch="$(git rev-parse --abbrev-ref HEAD)"
git add contracts
git checkout --orphan "$branch"
if [ -n "$base" ]; then
git checkout --quiet --detach
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
if ! git diff --cached --quiet; then
if ! git diff --quiet --cached; then
git commit -m "Transpile $commit"
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