Skip to content

Commit

Permalink
Fix: global constants API
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Jul 7, 2022
1 parent 007edc1 commit ab137e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/postgres/global_constant/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ func (storage *Storage) ForContract(address string, size, offset int64) (respons
Join("LEFT JOIN (select distinct global_constant_id, script_id from script_constants) as t on t.script_id = jakarta_id or t.script_id = babylon_id").
Join("LEFT JOIN global_constants on t.global_constant_id = global_constants.id").
Where("accounts.address = ?", address).
Where("global_constant_id is not null").
Limit(int(size)).
Offset(int(offset)).
Order("id desc").
Expand Down

0 comments on commit ab137e7

Please sign in to comment.