Merge pull request #1559 from fjarri/option-cleanup-fix

Fix some minor bugs introduced by PR1434
pull/1572/head
K Prasch 2020-01-14 08:50:53 -08:00 committed by GitHub
commit 91439e539d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 7 deletions

View File

@ -63,7 +63,7 @@ class AliceConfigOptions:
eth_node = NO_BLOCKCHAIN_CONNECTION
if geth:
eth_node = actions.get_provider_process()
provider_uri = ETH_NODE.provider_uri(scheme='file')
provider_uri = eth_node.provider_uri(scheme='file')
self.dev = dev
self.domains = {network} if network else None

View File

@ -89,8 +89,8 @@ class StakeHolderConfigOptions:
if self.provider_uri is None:
raise click.BadOptionUsage(
option_name="--provider-uri",
message="--provider-uri must be specified to create a new stakeholder")
option_name="--provider",
message="--provider must be specified to create a new stakeholder")
return StakeHolderConfiguration.generate(
config_root=config_root,

View File

@ -460,10 +460,8 @@ def transfer_tokens(general_config, actor_options, target_address, value):
value = NU.from_tokens(click.prompt(f"Enter value in NU", type=stake_value_range))
click.confirm(f"Transfer {value} from {deployer_address} to {target_address}?", abort=True)
receipt = token_agent.transfer(amount=value,
sender_address=deployer_address,
target_address=target_address)
emitter.echo(f"OK | Receipt: {receipt['transactionHash'].hex()}")
receipt = token_agent.transfer(amount=int(value), sender_address=deployer_address, target_address=target_address)
paint_receipt_summary(emitter=emitter, receipt=receipt)
@deploy.command("transfer-ownership")