Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
Replace outdated key with new key in blank project (only works for te…
Browse files Browse the repository at this point in the history
…sts). Fix typo in test_environment
  • Loading branch information
ilblackdragon committed Jun 19, 2019
1 parent d621f67 commit 5d9a0e4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 0 additions & 1 deletion blank_project/neardev/devkey.json

This file was deleted.

5 changes: 5 additions & 0 deletions blank_project/neardev/test/test.near
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"account_id": "test.near",
"public_key": "22skMptHjFWNyuEWY22ftn2AbLPSYpmYwGJRGwpNHbTV",
"secret_key": "2wyRcSwSuHtRVmkMCGjPwnzZmQLeXLzLLyED1NDMt4BjnKgQL6tF85yBx6Jr26D2dUNeC716RBoTxntVHsegogYw"
}
2 changes: 1 addition & 1 deletion test_environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class LocalTestEnvironment extends NodeEnvironment {
contractName: "test" + Date.now(),
accountId: "test" + Date.now()
});
const keyStore = new nearlib.keyStore.UnencryptedFileSystemKeyStore('./nearlib');
const keyStore = new nearlib.keyStores.UnencryptedFileSystemKeyStore('./neardev');
await keyStore.setKey(config.networkId, testAccountName, nearlib.utils.KeyPair.fromString('ed25519:2wyRcSwSuHtRVmkMCGjPwnzZmQLeXLzLLyED1NDMt4BjnKgQL6tF85yBx6Jr26D2dUNeC716RBoTxntVHsegogYw'));
config.deps = Object.assign(config.deps || {}, {
storage: this.createFakeStorage(),
Expand Down

0 comments on commit 5d9a0e4

Please sign in to comment.