lutianzhou001 / aa-sdk

1 stars 1 forks source link

[Suggestion] Missing getAdminValidatorAndSubject() #9

Open matthewyu-okx opened 3 days ago

matthewyu-okx commented 3 days ago

Background

In the old version sdk, there is a function to get the admin validator and subject of an AA.

const { adminValidator, subject } = smartAccount.accountManager.getAdminValidatorAndSubject(aa.address)

In the new version of sdk, this function is removed and not replaced with any function. It is important for AA Web to identify whether the current signer is the owner of the AA.

lutianzhou001 commented 3 days ago

https://github.com/lutianzhou001/aa-sdk/pull/11