Skip to content

Commit

Permalink
Merge pull request blockscout#8355 from blockscout/fix-current-token-…
Browse files Browse the repository at this point in the history
…balances-redefining

Fix current token balances redefining
  • Loading branch information
vbaranov authored Aug 30, 2023
2 parents 08ab6ef + 131949b commit c9f5eee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
- [#8293](https://github.com/blockscout/blockscout/pull/8293) - Add ETHEREUM_JSONRPC_TRACE_URL for Geth in docker-compose.yml
- [#8240](https://github.com/blockscout/blockscout/pull/8240) - Refactor and fix paging params in API v2
- [#8242](https://github.com/blockscout/blockscout/pull/8242) - Fixing visualizer service CORS issue when running docker-compose
- [#8355](https://github.com/blockscout/blockscout/pull/8355) - Fix current token balances redefining

### Chore

Expand Down
2 changes: 2 additions & 0 deletions apps/explorer/lib/explorer/chain/import/runner/blocks.ex
Original file line number Diff line number Diff line change
Expand Up @@ -541,8 +541,10 @@ defmodule Explorer.Chain.Import.Runner.Blocks do
address_hash: new_current_token_balance.address_hash,
token_contract_address_hash: new_current_token_balance.token_contract_address_hash,
token_id: new_current_token_balance.token_id,
token_type: tb.token_type,
block_number: new_current_token_balance.block_number,
value: tb.value,
value_fetched_at: tb.value_fetched_at,
inserted_at: over(min(tb.inserted_at), :w),
updated_at: over(max(tb.updated_at), :w)
},
Expand Down

0 comments on commit c9f5eee

Please sign in to comment.