Skip to content

Commit

Permalink
feat: remove cached_property from accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
johnson2427 committed May 1, 2024
1 parent 713fd6c commit d71b766
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ape_aws/accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

from ape.api.accounts import AccountContainerAPI, AccountAPI, TransactionAPI
from ape.types import AddressType, MessageSignature, SignableMessage, TransactionSignature
from ape.utils import cached_property

from .utils import _convert_der_to_rsv
from .client import kms_client
Expand Down Expand Up @@ -41,11 +40,11 @@ class KmsAccount(AccountAPI):
key_id: str
key_arn: str

@cached_property
@property
def public_key(self):
return kms_client.get_public_key(self.key_id)

@cached_property
@property
def address(self) -> AddressType:
return to_checksum_address(
keccak(self.public_key[-64:])[-20:].hex().lower()
Expand Down

0 comments on commit d71b766

Please sign in to comment.