From cf0d4481f31599a42aeb4e62f00ed94be45345b0 Mon Sep 17 00:00:00 2001 From: andri lim Date: Wed, 8 Jan 2020 10:18:33 +0700 Subject: [PATCH] [skip ci] rename 'isExists' to 'exists' --- nimbus/db/accounts_cache.nim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nimbus/db/accounts_cache.nim b/nimbus/db/accounts_cache.nim index f24bc25d0..68fca8426 100644 --- a/nimbus/db/accounts_cache.nim +++ b/nimbus/db/accounts_cache.nim @@ -135,7 +135,7 @@ proc isEmpty(acc: RefAccount): bool = acc.account.balance.isZero and acc.account.nonce == 0 -proc isExists(acc: RefAccount): bool = +proc exists(acc: RefAccount): bool = if IsAlive notin acc.flags: return false if IsClone in acc.flags: @@ -287,16 +287,16 @@ proc hasCodeOrNonce*(ac: AccountsCache, address: EthAddress): bool {.inline.} = proc accountExists*(ac: AccountsCache, address: EthAddress): bool {.inline.} = let acc = ac.getAccount(address) - acc.isExists() + acc.exists() proc isEmptyAccount*(ac: AccountsCache, address: EthAddress): bool {.inline.} = let acc = ac.getAccount(address) - doAssert acc.isExists() + doAssert acc.exists() result = acc.isEmpty() proc isDeadAccount*(ac: AccountsCache, address: EthAddress): bool = let acc = ac.getAccount(address) - if not acc.isExists(): + if not acc.exists(): result = true else: result = acc.isEmpty()