Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FeatFix][Erc721] fix bug icon contract #3415

Merged
merged 1 commit into from
May 22, 2024
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: 5 additions & 1 deletion src/app/core/services/transaction.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,11 @@ export class TransactionService extends CommonService {
const operationsDoc = `
query QueryEvmTxOfContract( $limit: Int = null, $address: String = null) {
${this.envDB} {
evm_transaction(where: {evm_events: {address: {_eq: $address}}}, limit: $limit, order_by: {id: desc}) {
evm_transaction(
where: {_or: [{to: {_eq: $address}}, {evm_events: {address: {_eq: $address}}}]}
limit: $limit
order_by: {id: desc}
) {
from
to
hash
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export class EvmTokenHoldersTabComponent implements OnInit {
let listAddr = [];
res?.view_count_holder_erc721.forEach((element) => {
if (element.owner) {
listAddr.push(element.from);
listAddr.push(element.owner);
}
});
const listAddrUnique = _.uniq(listAddr);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<span class="small-text mr-1 text--gray-1">Token ID:</span>
<a
class="small-text text--primary hover-link"
[routerLink]="['/token/evm/erc721', item.contract_address , encodeData(item.token_id)]">
[routerLink]="['/token/evm/erc721', item.contract_address, encodeData(item.token_id)]">
<span class="d-none d-lg-inline-block">{{ item.token_id | ellipsis: 8 : 8 }}</span>
<span class="d-inline-block d-lg-none">{{ item.token_id | ellipsis: 5 : 5 }}</span>
</a>
Expand All @@ -38,7 +38,7 @@
<a
*ngIf="breakpoint.value.matches"
[copyBtn]="item.owner"
[btnClass]="['pl-1', 'mt-1']"
[btnClass]="['pl-1']"
class="small-text text--primary d-lg-none hover-link"
[ngClass]="(item.owner | isPrivateNameTag) ? 'private-name-tag' : ''"
[routerLink]="['/token', item.contract_address]"
Expand All @@ -52,7 +52,7 @@
</a>
<app-name-tag
*ngIf="!breakpoint.value.matches"
class="small-text text--primary hover-link mt-1"
class="small-text text--primary hover-link"
[value]="item.owner"
[linkRouter]="['/token', item.contract_address]"
[linkParams]="{ a: item.owner }">
Expand Down