Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyan-dfinity committed Nov 1, 2024
1 parent 45ac670 commit 48be41c
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 41 deletions.
6 changes: 5 additions & 1 deletion motoko/icrc2-swap/test/swap/identity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@ import { Ed25519KeyIdentity } from "@dfinity/identity";
//
// This key is not a secret. Only use it for testing! It is from:
// https://internetcomputer.org/docs/current/references/cli-reference/dfx-nns/#example-accessing-icp-on-the-command-line
const minterPublicKey = Buffer.from(
"Uu8wv55BKmk9ZErr6OIt5XR1kpEGXcOSOC1OYzrAwuk=",
"base64",
);
const minterPrivateKey = Buffer.from(
"N3HB8Hh2PrWqhWH2Qqgr1vbU9T3gb1zgdBD8ZOdlQnVS7zC/nkEqaT1kSuvo4i3ldHWSkQZdw5I4LU5jOsDC6Q==",
"base64",
);
export const minter = Ed25519KeyIdentity.fromSecretKey(minterPrivateKey);
export const minter = Ed25519KeyIdentity.fromKeyPair(minterPublicKey, minterPrivateKey);

// Randomly generate a new test account each run so there are no collisions,
// and our tests are forced to be robust.
Expand Down
75 changes: 36 additions & 39 deletions motoko/minimal-counter-dapp/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
"@dfinity/principal": "^2.1.3",
"lit-html": "^2.8.0"
}
}
}

0 comments on commit 48be41c

Please sign in to comment.