我刚接触过L1C4近认证开发人员视频,只是跟在一起,并撞上了一块砖墙。
当试图发送消息(./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帐户中有什么东西是我必须启用的才能使其正常工作吗?
发布于 2022-01-18 03:37:42
您需要在本地使用您的帐户登录。
运行near login,它将在web浏览器中打开您的近钱包。
授权名为jptest2.testnet的帐户
https://stackoverflow.com/questions/70747570
复制相似问题