Skip to content

Commit

Permalink
writing labels to result, migration fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
remoterami committed Sep 11, 2024
2 parents 873d06e + 90e7b00 commit c6324df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions backend/pkg/api/data_access/vdb_blocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -414,10 +414,10 @@ func (d *DataAccessService) GetValidatorDashboardBlocks(ctx context.Context, das
return nil, nil, err
}
var contractIdx int
for _, resultRow := range data {
if resultRow.RewardRecipient != nil {
resultRow.RewardRecipient = addressMapping[string(resultRow.RewardRecipient.Hash)]
resultRow.RewardRecipient.IsContract = contractStatuses[contractIdx] == types.CONTRACT_CREATION || contractStatuses[contractIdx] == types.CONTRACT_PRESENT
for i := range data {
if data[i].RewardRecipient != nil {
data[i].RewardRecipient = addressMapping[string(data[i].RewardRecipient.Hash)]
data[i].RewardRecipient.IsContract = contractStatuses[contractIdx] == types.CONTRACT_CREATION || contractStatuses[contractIdx] == types.CONTRACT_PRESENT
contractIdx += 1
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ CREATE TABLE address_tags (
-- +goose Down
-- +goose StatementBegin
SELECT('down SQL query - drop address_tags table');
DROP TABLE execution_payloads;
DROP TABLE address_tags;
-- +goose StatementEnd

0 comments on commit c6324df

Please sign in to comment.