Skip to content

Commit

Permalink
fix(api): add missing ens of depositor address (#876)
Browse files Browse the repository at this point in the history
BEDS-154
  • Loading branch information
remoterami authored Sep 23, 2024
1 parent 740ded2 commit ac5358a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/pkg/api/data_access/vdb_deposits.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ func (d *DataAccessService) GetValidatorDashboardElDeposits(ctx context.Context,
for i := range data {
responseData[i].From = *addressMapping[string(responseData[i].From.Hash)]
responseData[i].From.IsContract = fromContractStatuses[i] == types.CONTRACT_CREATION || fromContractStatuses[i] == types.CONTRACT_PRESENT
responseData[i].Depositor = *addressMapping[string(responseData[i].Depositor.Hash)]
responseData[i].Depositor.IsContract = responseData[i].From.IsContract
if responseData[i].Depositor.Hash != responseData[i].From.Hash {
responseData[i].Depositor.IsContract = depositorContractStatuses[depositorIdx] == types.CONTRACT_CREATION || depositorContractStatuses[depositorIdx] == types.CONTRACT_PRESENT
Expand Down

0 comments on commit ac5358a

Please sign in to comment.