diff --git a/packages/agent/src/canisterStatus/index.test.ts b/packages/agent/src/canisterStatus/index.test.ts index de6a7dc36..3994cf2b0 100644 --- a/packages/agent/src/canisterStatus/index.test.ts +++ b/packages/agent/src/canisterStatus/index.test.ts @@ -135,7 +135,7 @@ describe('Canister Status utility', () => { it('should support valid metadata queries', async () => { const status = await getStatus([ { - kind: 'medadata', + kind: 'metadata', path: 'candid:service', key: 'candid', decodeStrategy: 'hex', @@ -143,7 +143,7 @@ describe('Canister Status utility', () => { ]); const statusEncoded = await getStatus([ { - kind: 'medadata', + kind: 'metadata', path: encode('candid:service'), key: 'candid', decodeStrategy: 'hex', diff --git a/packages/agent/src/canisterStatus/index.ts b/packages/agent/src/canisterStatus/index.ts index 10ff779cb..aab8b68f1 100644 --- a/packages/agent/src/canisterStatus/index.ts +++ b/packages/agent/src/canisterStatus/index.ts @@ -25,7 +25,7 @@ export interface CustomPath { * Private metadata will require the ${@link Identity} used by the ${@link HttpAgent} will need to be requested using an identity that controlls the canister. */ export interface MetaData { - kind: 'medadata'; + kind: 'metadata'; key: string; path: string | ArrayBuffer; decodeStrategy: 'cbor' | 'hex' | 'leb128' | 'raw';