Commit d6e59899 authored by harrylee's avatar harrylee

fix a bug for query callbackmeta

parent e47c0e55
...@@ -561,12 +561,11 @@ func (client *JSONClient) QueryCallBackMeta() (*types.Meta, error) { ...@@ -561,12 +561,11 @@ func (client *JSONClient) QueryCallBackMeta() (*types.Meta, error) {
FuncName: broker.FuncNameQueryCallBackMeta, FuncName: broker.FuncNameQueryCallBackMeta,
Payload: jsonraw, Payload: jsonraw,
} }
var meta types.Meta data, err := client.CallBack("Chain33.Query", query, ParseMeta)
err = client.Call("Chain33.Query", query, &meta)
if err != nil { if err != nil {
return nil, err return nil, err
} }
return &meta, nil return data.(*types.Meta), nil
} }
func (client *JSONClient) QueryOutMessage(inServicePair string, index uint64) (*types.InterchainEvent, error) { func (client *JSONClient) QueryOutMessage(inServicePair string, index uint64) (*types.InterchainEvent, error) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment