-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for updating contract with msig
- Loading branch information
1 parent
8a4ad37
commit 331f197
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
|
||
green=`tput setaf 2` | ||
reset=`tput sgr0` | ||
|
||
source ./conf_private.sh | ||
source ./conf_dac.sh | ||
source ./conf.sh | ||
source ./functions.sh | ||
|
||
|
||
|
||
echo -e "\n\n----------------- UPDATE CONTRACT -------------------\n\n"; | ||
|
||
|
||
./msig/gen_requested_permissions.py | ||
|
||
run_cmd "set code -s -d -j $daccustodian $DACCONTRACTS/daccustodian/daccustodian_migrate.wasm -p $daccustodian@active > setcode.trx" | ||
run_cmd "multisig cancel eosdaccustab addmigrate eosdaccustab" | ||
run_cmd "multisig propose_trx addmigrate ./requested_perms.json setcode.trx eosdaccustab" | ||
|
||
for x in {a..j} | ||
do | ||
CUST="eosdaccusta$x" | ||
run_cmd "multisig approve eosdaccustab addmigrate '{\"actor\":\"$CUST\", \"permission\":\"active\"}' -p $CUST" | ||
done | ||
run_cmd "multisig exec eosdaccustab addmigrate eosdaccustab" |