fibercrypto / fibercrypto/skycoin

skycoin-cli transaction, error: index out of range

Open
#2,469 0 comments 0 reactions 0 assignees View on GitHub
bug cli
Dominant language
Go
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

When I run the command `skycoin cli-transaction` with out arguments raise next error:
```
panic: runtime error: index out of range

goroutine 1 [running]:
github.com/skycoin/skycoin/src/cli.transactionCmd.func1(0xc420323680, 0xd2b448, 0x0, 0x0, 0x0, 0x0)
$GOPATH/src/github.com/skycoin/skycoin/src/cli/transaction.go:28 +0x1b2
github.com/skycoin/skycoin/vendor/github.com/spf13/cobra.(*Command).execute(0xc420323680, 0xd2b448, 0x0, 0x0, 0xc420323680, 0xd2b448)
$GOPATH/src/github.com/skycoin/skycoin/vendor/github.com/spf13/cobra/command.go:762 +0x468
github.com/skycoin/skycoin/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc420316000, 0xc420325400, 0xc420325680, 0xc420325900)
$GOPATH/src/github.com/skycoin/skycoin/vendor/github.com/spf13/cobra/command.go:852 +0x30a
github.com/skycoin/skycoin/vendor/github.com/spf13/cobra.(*Command).Execute(0xc420316000, 0x1a, 0xc420312010)
$GOPATH/src/github.com/skycoin/skycoin/vendor/github.com/spf13/cobra/command.go:800 +0x2b
main.main()
$GOPATH/src/github.com/skycoin/skycoin/cmd/cli/cli.go:26 +0x19e

```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at src/cli/transaction.go:28, identified by the stack trace, and run `skycoin cli-transaction` without arguments to reproduce the panic. Determine the command's expected behavior for missing arguments and verify that the command reports the input problem without an index-out-of-range panic.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.