I'm using an example from example/transaction, and I got an error while using the method InjectionOperation
Inside this method, we use Marshal: v, err := json.Marshal(input.Operation), and then we transmit the received data v into
Client.postresp, err := c.post("/injection/operation", v, input.contructRPCOptions()...), and now, in this method, the received data is displayed incorrectly immediately after receiving it.
func (c *Client) post(path string, body interface{}, opts ...rpcOptions) (*resty.Response, error), when entering the method, body parameter contains: <unsupported type: []uint8>, but before calling the method c.post, during debagging, you can see that the transmitted data is correct. As a result, in this line, in resp we get [{"kind":"temporary","id":"failure","msg":"Error while applying operation ooiFyhgHPwwyBepsp19jS2PRzXVFJMnonUdJCbYuGLHAZ5CLtZw:\n branch refused (Error:\n Unrevealed manager key for contract tz1bpzyfVGfFfKiNTHGquRNcbYDLghjcotZa.\n)"}]
I'm using an example from example/transaction, and I got an error while using the method InjectionOperation Inside this method, we use Marshal:
v, err := json.Marshal(input.Operation)
, and then we transmit the received datav
into Client.postresp, err := c.post("/injection/operation", v, input.contructRPCOptions()...)
, and now, in this method, the received data is displayed incorrectly immediately after receiving it.func (c *Client) post(path string, body interface{}, opts ...rpcOptions) (*resty.Response, error)
, when entering the method,body
parameter contains:<unsupported type: []uint8>
, but before calling the methodc.post
, during debagging, you can see that the transmitted data is correct. As a result, in this line, inresp
we get[{"kind":"temporary","id":"failure","msg":"Error while applying operation ooiFyhgHPwwyBepsp19jS2PRzXVFJMnonUdJCbYuGLHAZ5CLtZw:\n branch refused (Error:\n Unrevealed manager key for contract tz1bpzyfVGfFfKiNTHGquRNcbYDLghjcotZa.\n)"}]