Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ledger/evalindexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ type EvalForIndexerResources struct {

// Creatable represent a single creatable object.
type Creatable struct {
cindex basics.CreatableIndex
ctype basics.CreatableType
Index basics.CreatableIndex
Type basics.CreatableType
}

// Converter between indexerLedgerForEval and ledgerForEvaluator interfaces.
Expand Down Expand Up @@ -116,7 +116,7 @@ func (l indexerLedgerConnector) GetCreatorForRound(_ basics.Round, cindex basics
var foundAddress FoundAddress
var has bool
// check to see if the account data in the cache.
if foundAddress, has = l.roundResources.Creators[Creatable{cindex: cindex, ctype: ctype}]; has {
if foundAddress, has = l.roundResources.Creators[Creatable{Index: cindex, Type: ctype}]; has {
return foundAddress.Address, foundAddress.Exists, nil
}

Expand Down
4 changes: 2 additions & 2 deletions ledger/evalindexer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,8 @@ func TestResourceCaching(t *testing.T) {
},
},
Creators: map[Creatable]FoundAddress{
{cindex: basics.CreatableIndex(6), ctype: basics.AssetCreatable}: {Address: address, Exists: true},
{cindex: basics.CreatableIndex(6), ctype: basics.AppCreatable}: {Address: address, Exists: false},
{Index: basics.CreatableIndex(6), Type: basics.AssetCreatable}: {Address: address, Exists: true},
{Index: basics.CreatableIndex(6), Type: basics.AppCreatable}: {Address: address, Exists: false},
},
}

Expand Down