Skip to content

Commit

Permalink
Remove a bit more unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
jackzampolin committed Jan 20, 2019
1 parent 565828a commit cca2f31
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
22 changes: 0 additions & 22 deletions client/context/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,28 +73,6 @@ func (ctx CLIContext) FetchAccAndSeqNums(address sdk.Address) (uint64, uint64, e
return account.GetAccountNumber(), account.GetSequence(), err
}

// GetAccountNumber returns the next account number for the given account
// address.
func (ctx CLIContext) GetAccountNumber(address []byte) (uint64, error) {
account, err := ctx.FetchAccount(address)
if err != nil {
return 0, err
}

return account.GetAccountNumber(), nil
}

// GetAccountSequence returns the sequence number for the given account
// address.
func (ctx CLIContext) GetAccountSequence(address []byte) (uint64, error) {
account, err := ctx.FetchAccount(address)
if err != nil {
return 0, err
}

return account.GetSequence(), nil
}

// EnsureAccountExists ensures that an account exists for a given
// address. Instead of using the context's from name, a direct address is
// given. An error is returned if it does not.
Expand Down
2 changes: 0 additions & 2 deletions cmd/gaia/init/gentx.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,6 @@ following delegation and commission default parameters:
return err
}

fmt.Println("Through cliCtx.PrintUnsignedStdTx")

// read the transaction
stdTx, err := readUnsignedGenTxFile(cdc, w)
if err != nil {
Expand Down

0 comments on commit cca2f31

Please sign in to comment.