callRequest method

  1. @override
Future<SubmitResponse> callRequest(
  1. Principal canisterId,
  2. CallOptions fields,
  3. Identity? identity
)
override

Implementation

@override
Future<SubmitResponse> callRequest(
  Principal canisterId,
  CallOptions fields,
  Identity? identity,
) {
  return _sendAndWait(
    ProxyMessageCallResponse.fromJson({
      'id': _nextId++,
      'type': ProxyMessageKind.call,
      'args': [canisterId.toString(), fields],
    }),
  );
}