objectRef static method

Map<String, dynamic> objectRef(
  1. SuiObjectRef data
)

Implementation

static Map<String, dynamic> objectRef(SuiObjectRef data) {
  return {
    "\$kind": 'Object',
    "Object": {
      "\$kind": 'ImmOrOwnedObject',
      "ImmOrOwnedObject": {
        "digest": data.digest,
        "version": data.version,
        "objectId": normalizeSuiAddress(data.objectId),
      },
    },
  };
}