Parse receipt value correctly
This commit is contained in:
@@ -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 \
|
||||
|
||||
@@ -2,10 +2,13 @@
|
||||
|
||||
if [[ $((RUN_MASK & 1)) -eq 1 ]]
|
||||
then
|
||||
./reset.sh
|
||||
./reset.sh
|
||||
if [ $? -ne "0" ]; then
|
||||
exit 1;
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ $((RUN_MASK & 2)) -eq 2 ]]
|
||||
then
|
||||
./seed_cic_eth.sh
|
||||
./seed_cic_eth.sh
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user