MCPcopy Create free account
hub / github.com/tendermint/tendermint / argsToURLValues

Function argsToURLValues

rpc/jsonrpc/client/encode.go:11–27  ·  view source on GitHub ↗
(args map[string]interface{})

Source from the content-addressed store, hash-verified

9)
10
11func argsToURLValues(args map[string]interface{}) (url.Values, error) {
12 values := make(url.Values)
13 if len(args) == 0 {
14 return values, nil
15 }
16
17 err := argsToJSON(args)
18 if err != nil {
19 return nil, err
20 }
21
22 for key, val := range args {
23 values.Set(key, val.(string))
24 }
25
26 return values, nil
27}
28
29func argsToJSON(args map[string]interface{}) error {
30 for k, v := range args {

Callers 1

CallMethod · 0.85

Calls 2

argsToJSONFunction · 0.85
SetMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…