Skip to content

Commit

Permalink
neorpc: fix exported structure comment
Browse files Browse the repository at this point in the history
Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
  • Loading branch information
AnnaShaleva committed Oct 20, 2023
1 parent 3544d65 commit 7a6b908
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/neorpc/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ type (
Error *Error `json:"error,omitempty"`
}

// Raw represents a standard raw JSON-RPC 2.0
// Response represents a standard raw JSON-RPC 2.0
// response: http://www.jsonrpc.org/specification#response_object.
Response struct {
HeaderAndError
Expand Down
2 changes: 1 addition & 1 deletion pkg/rpcclient/invoker/doc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func ExampleInvoker() {
res, _ := inv.Call(neo.Hash, "transfer", acc, util.Uint160{1, 2, 3}, 1, nil)
if res.State == vmstate.Halt.String() {
panic("NEO is broken!") // inv has no signers and transfer requires a witness to be performed.
} else { // nolint:superfluous-else // superfluous-else: if block ends with call to panic function, so drop this else and outdent its block (revive)
} else { // nolint:revive // superfluous-else: if block ends with call to panic function, so drop this else and outdent its block (revive)
println("ok") // this actually should fail
}

Expand Down

0 comments on commit 7a6b908

Please sign in to comment.