我是Near的新手,只关注L1C4 Near认证开发人员视频,有点碰壁。
当尝试发送消息(./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
的帐户