Parse receipt value correctly
This commit is contained in:
parent
02d23112cd
commit
bd9070ae44
@ -470,7 +470,8 @@ class AdminApi:
|
||||
try:
|
||||
o = receipt(tx_hash)
|
||||
r = self.rpc.do(o)
|
||||
if r['status'] == 1:
|
||||
logg.debug('h {} o {}'.format(tx_hash, o))
|
||||
if int(strip_0x(r['status'])) == 1:
|
||||
tx['network_status'] = 'Confirmed'
|
||||
else:
|
||||
tx['network_status'] = 'Reverted'
|
||||
|
@ -57,8 +57,8 @@ WORKDIR /home/grassroots
|
||||
USER grassroots
|
||||
|
||||
ARG pip_extra_index_url=https://pip.grassrootseconomics.net:8433
|
||||
ARG cic_base_version=0.1.2a48
|
||||
ARG cic_eth_version=0.10.1a5+build.792715ca
|
||||
ARG cic_base_version=0.1.2a49
|
||||
ARG cic_eth_version=0.10.1a5+build.02d23112
|
||||
ARG sarafu_faucet_version=0.0.2a13
|
||||
ARG cic_contracts_version=0.0.2a2
|
||||
RUN pip install --user --extra-index-url $pip_extra_index_url cic-base[full_graph]==$cic_base_version \
|
||||
|
@ -3,6 +3,9 @@
|
||||
if [[ $((RUN_MASK & 1)) -eq 1 ]]
|
||||
then
|
||||
./reset.sh
|
||||
if [ $? -ne "0" ]; then
|
||||
exit 1;
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ $((RUN_MASK & 2)) -eq 2 ]]
|
||||
|
@ -101,7 +101,7 @@ services:
|
||||
CELERY_BROKER_URL: ${CELERY_BROKER_URL:-redis://redis:6379}
|
||||
CELERY_RESULT_URL: ${CELERY_RESULT_URL:-redis://redis:6379}
|
||||
DEV_PIP_EXTRA_INDEX_URL: ${DEV_PIP_EXTRA_INDEX_URL:-https://pip.grassrootseconomics.net:8433}
|
||||
RUN_MASK: 3 #0: noop 1: contract migrations 2: seed data
|
||||
RUN_MASK: 2 #0: nohp 1: contract migrations 2: seed data
|
||||
command: ["./run_job.sh"]
|
||||
#command: ["./reset.sh"]
|
||||
depends_on:
|
||||
|
Loading…
Reference in New Issue
Block a user