Skip to content

Commit

Permalink
fix: blockscout nft bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhangguiguang committed Jan 25, 2024
1 parent ec98ca3 commit 82e5b8f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/eth/blockscout.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

const (
BlockScoutURLBevm = "https://scan-canary.bevm.io/api/v2"
BlockScoutURLBevm = "https://scan-canary-api.bevm.io/api/v2"
BlockScoutURLEth = "https://eth.blockscout.com/api/v2"
)

Expand Down
4 changes: 4 additions & 0 deletions core/eth/blockscout_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ func TestBlockScout_NFT(t *testing.T) {
}

func showPage(p *BKSNFTPage) {
if p == nil {
println("!!! page is empty")
return
}
println("item count: ", p.Count())
f := p.ValueAt(0).ToBaseNFT()
println("first item: ", f.Id, f.Name, f.Image)
Expand Down
1 change: 1 addition & 0 deletions core/eth/nft.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,5 +284,6 @@ func (f *BKSNFTFetcher) FetchNextPage() (*BKSNFTPage, error) {
return nil, err
}
f.nextPage = p.NextPage_
f.quired = true
return p, err
}

0 comments on commit 82e5b8f

Please sign in to comment.