diff --git a/package.json b/package.json index 72f0c96..2f0a10d 100644 --- a/package.json +++ b/package.json @@ -179,7 +179,7 @@ "err-code": "^3.0.1", "interface-datastore": "^7.0.0", "multiformats": "^11.0.0", - "protons-runtime": "^4.0.1", + "protons-runtime": "^5.0.0", "timestamp-nano": "^1.0.0", "uint8arraylist": "^2.4.3", "uint8arrays": "^4.0.2" diff --git a/src/pb/ipns.ts b/src/pb/ipns.ts index aa433a9..867ea37 100644 --- a/src/pb/ipns.ts +++ b/src/pb/ipns.ts @@ -2,10 +2,11 @@ /* eslint-disable complexity */ /* eslint-disable @typescript-eslint/no-namespace */ /* eslint-disable @typescript-eslint/no-unnecessary-boolean-literal-compare */ +/* eslint-disable @typescript-eslint/no-empty-interface */ import { enumeration, encodeMessage, decodeMessage, message } from 'protons-runtime' -import type { Uint8ArrayList } from 'uint8arraylist' import type { Codec } from 'protons-runtime' +import type { Uint8ArrayList } from 'uint8arraylist' export interface IpnsEntry { value?: Uint8Array @@ -140,7 +141,7 @@ export namespace IpnsEntry { return _codec } - export const encode = (obj: IpnsEntry): Uint8Array => { + export const encode = (obj: Partial): Uint8Array => { return encodeMessage(obj, IpnsEntry.codec()) }