Skip to content

Commit 0607d38

Browse files
committed
roundCowBase: use lookup() instead of going to ledger directly.
1 parent 168cfe5 commit 0607d38

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ledger/internal/eval.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ func (x *roundCowBase) blockHdr(r basics.Round) (bookkeeping.BlockHeader, error)
162162
}
163163

164164
func (x *roundCowBase) allocated(addr basics.Address, aidx basics.AppIndex, global bool) (bool, error) {
165-
acct, _, err := x.l.LookupWithoutRewards(x.rnd, addr)
165+
acct, err := x.lookup(addr)
166166
if err != nil {
167167
return false, err
168168
}
@@ -181,7 +181,7 @@ func (x *roundCowBase) allocated(addr basics.Address, aidx basics.AppIndex, glob
181181
// getKey gets the value for a particular key in some storage
182182
// associated with an application globally or locally
183183
func (x *roundCowBase) getKey(addr basics.Address, aidx basics.AppIndex, global bool, key string, accountIdx uint64) (basics.TealValue, bool, error) {
184-
ad, _, err := x.l.LookupWithoutRewards(x.rnd, addr)
184+
ad, err := x.lookup(addr)
185185
if err != nil {
186186
return basics.TealValue{}, false, err
187187
}
@@ -211,7 +211,7 @@ func (x *roundCowBase) getKey(addr basics.Address, aidx basics.AppIndex, global
211211
// getStorageCounts counts the storage types used by some account
212212
// associated with an application globally or locally
213213
func (x *roundCowBase) getStorageCounts(addr basics.Address, aidx basics.AppIndex, global bool) (basics.StateSchema, error) {
214-
ad, _, err := x.l.LookupWithoutRewards(x.rnd, addr)
214+
ad, err := x.lookup(addr)
215215
if err != nil {
216216
return basics.StateSchema{}, err
217217
}

0 commit comments

Comments
 (0)