Skip to content

Commit

Permalink
Add test for updating contract with msig
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljyeates committed Oct 22, 2018
1 parent 8a4ad37 commit 331f197
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions eosdac-testnet/update_contract.sh
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"

0 comments on commit 331f197

Please sign in to comment.