Skip to content

Commit

Permalink
add missing user of ErrCreatableNotFound
Browse files Browse the repository at this point in the history
  • Loading branch information
cce committed Nov 1, 2021
1 parent deb7d42 commit c4f64e1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ledger/internal/cow_creatables.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ func (cs *roundCowState) TotalAssetParams(addr basics.Address) (int, error) {
}

func (cs *roundCowState) GetAppParams(creator basics.Address, aidx basics.AppIndex) (params basics.AppParams, err error) {
record, err := cs.lookup(creator)
acct, err := cs.lookup(creator)
if err != nil {
return
}
params, ok := record.AppParams[aidx]
params, ok := acct.AppParams[aidx]
if !ok {
err = apply.ErrAppNotFound
err = apply.ErrCreatableNotFound
return
}
return
Expand All @@ -69,7 +69,7 @@ func (cs *roundCowState) GetAppLocalState(addr basics.Address, aidx basics.AppIn
}
state, ok := acct.AppLocalStates[aidx]
if !ok {
err = apply.ErrAppNotFound
err = apply.ErrCreatableNotFound
return
}
return
Expand All @@ -81,7 +81,7 @@ func (cs *roundCowState) GetAssetHolding(addr basics.Address, aidx basics.AssetI
}
holding, ok := acct.Assets[aidx]
if !ok {
err = apply.ErrAssetNotFound
err = apply.ErrCreatableNotFound
return
}
return
Expand All @@ -93,7 +93,7 @@ func (cs *roundCowState) GetAssetParams(addr basics.Address, aidx basics.AssetIn
}
params, ok := acct.AssetParams[aidx]
if !ok {
err = apply.ErrAssetNotFound
err = apply.ErrCreatableNotFound
return
}
return
Expand Down

0 comments on commit c4f64e1

Please sign in to comment.