Getting close to being able to have individual users deploy their own smart contracts from the frontend witn NEAR, but I'm running into an error. First, the code:
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);
When doing this, I get the following error:
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
No idea how to solve this one. As far as I know my polluterofminds.testnet account has a full access key and I have signed in with that account.
Anyone successfully done this?
