Skip to content

ARC-0058: Plugin-Based Account Abstraction #269

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 17 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
updated TEALScript
  • Loading branch information
joe-p committed Jan 9, 2024
commit 11cce9a72c8db787bbb9bb18eda09c14a6655df5
8 changes: 5 additions & 3 deletions ARCs/arc-0058.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,10 @@ export class AbstractedAccount extends Contract {
if (lastTxn.sender !== this.address.value || lastTxn.rekeyTo !== this.getAuthAddr()) {
verifyAppCallTxn(lastTxn, {
applicationID: this.app,
applicationArgs: {
0: method('verifyAuthAddr()void'),
},
});
assert(lastTxn.applicationArgs[0] === method('verifyAuthAddr()void'));
}
}

Expand Down Expand Up @@ -288,7 +290,7 @@ export class AbstractedAccount extends Contract {
* @param app The app to add
*/
addPlugin(app: Application): void {
assert(this.txn.sender === this.admin.value);
verifyTxn(this.txn, { sender: this.admin.value });

this.plugins(app).create(0);
}
Expand All @@ -299,7 +301,7 @@ export class AbstractedAccount extends Contract {
* @param app The app to remove
*/
removePlugin(app: Application): void {
assert(this.txn.sender === this.admin.value);
verifyTxn(this.txn, { sender: this.admin.value });

this.plugins(app).delete();
}
Expand Down