Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: typo for MetaData kind #582

Merged
merged 2 commits into from Jun 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/agent/src/canisterStatus/index.test.ts
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
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