call method

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

Implementation

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