Skip to content

Commit

Permalink
performance improvment
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-tron committed Oct 28, 2024
1 parent b1e407d commit 5b8a600
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions pkg/api/account_converters.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,12 @@ func convertToAccount(account *core.Account, ab *addressbook.KnownAddress, state
}
if account.Status == tlb.AccountUninit || account.Status == tlb.AccountNone {
acc.IsWallet = true
}
for _, i := range account.Interfaces {
if i.Implements(abi.Wallet) {
acc.IsWallet = true
break
} else {
for _, i := range account.Interfaces {
if i.Implements(abi.Wallet) {
acc.IsWallet = true
break
}
}
}
if ab == nil {
Expand Down

0 comments on commit 5b8a600

Please sign in to comment.