Api v3 doesn't follow the spec?

Hi, I’m implementing the v3 call api in the ic_tools Dart agent, and it looks like the response values are different than what is written in the spec.

On a successful 200 response, in the first decoded cbor map:

  • The status value comes as “replied”, but the spec says it should be “certified_state”.
  • The certificate is in a “certificate” field, but the spec says it should be in a “reply” field.

Hi @levi! Thanks for spotting out the discrepancy between the IC-spec and the response you get back from the IC. I’ll update the IC spec to reflect the actual output from the IC implementation.

The PR to update the spec is in review, and edits the spec to this:

1 Like