跟随 NEAR Certified Developer L1C4 介绍视频时出错

Error when following the NEAR Certified Developer L1C4 introductory video

我是 Near 的新手 - 刚刚跟随 L1C4 NEAR Certified Developer 视频,遇到了一些困难。

尝试发送消息时 (./scripts/2.say-thanks.sh "Thanks for being here") 我收到以下错误消息:

Unable to find [ testnet ] credentials for [ jptest2.testnet ]...
Scheduling a call: dev-1642444729043-12324156214302.say({"message":"Thanks for being here"})
Doing account.functionCall()
TypedError: Can not sign transactions for account jptest2.testnet on network testnet, no matching key pair found in InMemorySigner(MergeKeyStore(UnencryptedFileSystemKeyStore(/Users/jeremy/.near-credentials), UnencryptedFileSystemKeyStore(/Users/jeremy/Projects/NCD.L1.sample--thanks/neardev))).
    at Account.signTransaction (/Users/jeremy/.nvm/versions/node/v16.6.0/lib/node_modules/near-cli/node_modules/near-api-js/lib/account.js:93:19)
    at async /Users/jeremy/.nvm/versions/node/v16.6.0/lib/node_modules/near-cli/node_modules/near-api-js/lib/account.js:118:34
    at async Object.exponentialBackoff [as default] (/Users/jeremy/.nvm/versions/node/v16.6.0/lib/node_modules/near-cli/node_modules/near-api-js/lib/utils/exponential-backoff.js:7:24)
    at async Account.signAndSendTransactionV2 (/Users/jeremy/.nvm/versions/node/v16.6.0/lib/node_modules/near-cli/node_modules/near-api-js/lib/account.js:117:24)
    at async scheduleFunctionCall (/Users/jeremy/.nvm/versions/node/v16.6.0/lib/node_modules/near-cli/commands/call.js:57:38)
    at async Object.handler (/Users/jeremy/.nvm/versions/node/v16.6.0/lib/node_modules/near-cli/utils/exit-on-error.js:52:9) {
  type: 'KeyNotFound',
  context: undefined
}

我在尝试 运行 ./scripts/o-report.sh 时遇到同样的错误。

我必须在 jptest2.testnet 帐户中启用某些功能才能正常工作吗?

您需要使用您的帐户在本地登录

运行 near login 这将在网络浏览器中打开您的 NEAR 钱包

授权名为 jptest2.testnet

的帐户