Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

order post tx "--generate-only" can't create #17

Open
nodebreaker0-0 opened this issue Jan 15, 2020 · 0 comments
Open

order post tx "--generate-only" can't create #17

nodebreaker0-0 opened this issue Jan 15, 2020 · 0 comments

Comments

@nodebreaker0-0
Copy link

nodebreaker0-0 commented Jan 15, 2020

@alessio

dexcli tx order post cosmos1zjke9jp4rftfzs6nw73ut94jzl3qgk95mhdmyx 1 BID 1000000000000000000 1000000000000000000 100 --chain-id=testchain --generate-only

ERROR: accepts 5 arg(s), received 6

dexcli tx order post --from cosmos1zjke9jp4rftfzs6nw73ut94jzl3qgk95mhdmyx 1 BID 1000000000000000000 1000000000000000000 100 --chain-id=testchain --generate-only

ERROR: no RPC client defined

Unable to generate when generating json to sign order post tx offline.
Defined in msg but cannot be processed in dexcli

https://github.com/tendermint/dex-demo/blob/master/pkg/cliutil/cli.go#L15

	accGetter := authtypes.NewAccountRetriever(cliCtx)
	if err := accGetter.EnsureExists(cliCtx.GetFromAddress()); err != nil {
		return context.CLIContext{}, authtypes.TxBuilder{}, err
	}

This part seems to be the cause, what is its use?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant