diff --git a/core/eth/blockscout.go b/core/eth/blockscout.go index 071ca53..12524b2 100644 --- a/core/eth/blockscout.go +++ b/core/eth/blockscout.go @@ -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" ) diff --git a/core/eth/blockscout_test.go b/core/eth/blockscout_test.go index 897a545..c49b7e6 100644 --- a/core/eth/blockscout_test.go +++ b/core/eth/blockscout_test.go @@ -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) diff --git a/core/eth/nft.go b/core/eth/nft.go index a76047b..857fce0 100644 --- a/core/eth/nft.go +++ b/core/eth/nft.go @@ -284,5 +284,6 @@ func (f *BKSNFTFetcher) FetchNextPage() (*BKSNFTPage, error) { return nil, err } f.nextPage = p.NextPage_ + f.quired = true return p, err }