Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles committed Feb 19, 2024
1 parent e23789c commit 2e5d8ae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ts/consumer/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ export class Client {
}

public static createFromPem(canisterId: string | Principal, pem: string): Client {
const privateKey = pem.replace(/\\n/g, '\n');
const buf = pemfile.decode(privateKey);
const buf = pemfile.decode(pem);
if (buf.length != 118) {
throw 'expecting byte length 118 but got ' + buf.length;
}
Expand Down

0 comments on commit 2e5d8ae

Please sign in to comment.