Skip to content
Snippets Groups Projects
Commit 2fff8377 authored by zramsay's avatar zramsay
Browse files

client: # of verbs should match # of arguments in Errorf

parent 7e7a2fd7
No related branches found
No related tags found
No related merge requests found
......@@ -173,8 +173,8 @@ func (burrowNodeClient *burrowNodeClient) QueryContract(callerAddress, calleeAdd
client := rpcclient.NewJSONRPCClient(burrowNodeClient.broadcastRPC)
callResult, err := tendermint_client.Call(client, callerAddress, calleeAddress, data)
if err != nil {
err = fmt.Errorf("Error connnecting to node (%s) to query contract at (%X) with data (%X)",
burrowNodeClient.broadcastRPC, calleeAddress, data, err.Error())
err = fmt.Errorf("Error (%v) connnecting to node (%s) to query contract at (%X) with data (%X)",
err.Error(), burrowNodeClient.broadcastRPC, calleeAddress, data)
return nil, int64(0), err
}
return callResult.Return, callResult.GasUsed, nil
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment