Skip to content

Commit d40f2ac

Browse files
committed
fix(pserver): new helper arguments and returns
1 parent 31c2e28 commit d40f2ac

File tree

1 file changed

+3
-2
lines changed
  • packages/cosmic-swingset/provisioning-server/src/ag_pserver

1 file changed

+3
-2
lines changed

packages/cosmic-swingset/provisioning-server/src/ag_pserver/main.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ def doEnablePubkeys(reactor, opts, config, pkobjs):
451451
if coin['denom'] == INITIAL_TOKEN[1] and int(coin['amount']) >= INITIAL_TOKEN[0]:
452452
missing = False
453453
break
454-
elif code == 9:
454+
elif code == 1 or code == 9:
455455
needIngress.append(pkobj)
456456
missing = True
457457
except Exception as e:
@@ -461,7 +461,8 @@ def doEnablePubkeys(reactor, opts, config, pkobjs):
461461
if missing:
462462
print('generating transaction for', pubkey)
463463
# Estimate the gas, with a little bit of padding.
464-
args = ['tx', 'send', config['bootstrapAddress'], pubkey, amountToken, '--gas=auto', '--gas-adjustment=1.05']
464+
args = ['tx', 'send', '--keyring-backend=test', config['bootstrapAddress'], pubkey,
465+
amountToken, '--gas=auto', '--gas-adjustment=1.05']
465466
code, output = yield agCosmosHelper(reactor, opts, config, args, 1)
466467
if code == 0:
467468
txes.append(output)

0 commit comments

Comments
 (0)