I get this error:
** "Transaction verification failed: Cannot update field 'appState' because permission for this field is 'Signature', but the required authorization was not provided or is invalid."**
Running this code:
const tx = await Mina.transaction(owner, () => {
zkapp.somemethodcall(proof)
});
await tx.prove();
const retTx = tx.sign([zkappKey, ownerKey]);
const retTxId = await retTx.send();
The init contract init:
init() {
super.init();
// some state update
let p = Permissions.proof();
let s = Permissions.signature();
this.account.permissions.set({
...Permissions.allImpossible(),
access: p,
editState: s,
editActionState: s,
send: s,
receive: p
});
}
What am I missing??