Skip to content

Commit

Permalink
fix: typo for MetaData kind (#582)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyan-dfinity committed Jun 28, 2022
1 parent 7e1568e commit 6eb97f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/agent/src/canisterStatus/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,15 @@ 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',
},
]);
const statusEncoded = await getStatus([
{
kind: 'medadata',
kind: 'metadata',
path: encode('candid:service'),
key: 'candid',
decodeStrategy: 'hex',
Expand Down
2 changes: 1 addition & 1 deletion packages/agent/src/canisterStatus/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 6eb97f2

Please sign in to comment.