DecodableEvent.fromProto constructor

DecodableEvent.fromProto(
  1. Event e
)

Build from the gRPC sui.rpc.v2.Event proto (execute or simulate with events included).

Implementation

factory DecodableEvent.fromProto(pb.Event e) => DecodableEvent(
      eventType: e.eventType.isEmpty ? null : e.eventType,
      packageId: e.packageId.isEmpty ? null : e.packageId,
      module: e.module.isEmpty ? null : e.module,
      bcs: e.contents.value.isEmpty
          ? null
          : Uint8List.fromList(e.contents.value),
    );