lamports -> lamports() (#16920)

This commit is contained in:
Jeff Washington (jwash)
2021-04-29 10:44:46 -05:00
committed by GitHub
parent 59e19828ea
commit ca7b36ad8f
7 changed files with 42 additions and 38 deletions

View File

@@ -187,7 +187,7 @@ impl Stakes {
}
}
if account.lamports == 0 {
if account.lamports() == 0 {
// when account is removed (lamports == 0), remove it from Stakes as well
// so that given `pubkey` can be used for any owner in the future, while not
// affecting Stakes.