【发布时间】:2021-08-18 23:55:07
【问题描述】:
接近能够让个人用户从 NEAR 的前端部署他们自己的智能合约,但我遇到了一个错误。一、代码:
const account = await near.account('polluterofminds.testnet');
const res = await axios.get("/api/contract");
const contractRaw = res.data;
const uint8 = new Uint8Array(Buffer.from(contractRaw))
const result = await account.deployContract(uint8);
console.log(result);
执行此操作时,我收到以下错误:
Error: The transaction contains more then one action, but it was signed with an access key which allows transaction to apply only one specific action. To apply more then one actions TX must be signed with a full access key
不知道如何解决这个问题。据我所知,我的 polluterofminds.testnet 帐户拥有完整的访问密钥,并且我已使用该帐户登录。
有人成功完成了吗?
【问题讨论】:
标签: javascript web3 nearprotocol