mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-01-09 21:19:05 +00:00
neorpc: fix exported structure comment
Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
This commit is contained in:
parent
3544d65ecd
commit
7a6b908cae
2 changed files with 2 additions and 2 deletions
|
@ -55,7 +55,7 @@ type (
|
||||||
Error *Error `json:"error,omitempty"`
|
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: http://www.jsonrpc.org/specification#response_object.
|
||||||
Response struct {
|
Response struct {
|
||||||
HeaderAndError
|
HeaderAndError
|
||||||
|
|
|
@ -34,7 +34,7 @@ func ExampleInvoker() {
|
||||||
res, _ := inv.Call(neo.Hash, "transfer", acc, util.Uint160{1, 2, 3}, 1, nil)
|
res, _ := inv.Call(neo.Hash, "transfer", acc, util.Uint160{1, 2, 3}, 1, nil)
|
||||||
if res.State == vmstate.Halt.String() {
|
if res.State == vmstate.Halt.String() {
|
||||||
panic("NEO is broken!") // inv has no signers and transfer requires a witness to be performed.
|
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
|
println("ok") // this actually should fail
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue