Skip to content

Commit

Permalink
update broken image path to correct one (#267)
Browse files Browse the repository at this point in the history
* Update TopShot.cdc

* regenerate asset

* fixed test

---------

Co-authored-by: Jude Zhu <[email protected]>
  • Loading branch information
annatangzhao and judezhu authored Sep 18, 2024
1 parent 96b859a commit 066c364
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion contracts/TopShot.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -1689,7 +1689,7 @@ access(all) contract TopShot: NonFungibleToken {
)
let squareImage = MetadataViews.Media(
file: MetadataViews.HTTPFile(
url: "https://nbatopshot.com/static/img/og/og.png"
url: "https://nbatopshot.com/static/favicon/favicon.svg"
),
mediaType: "image/png"
)
Expand Down
6 changes: 3 additions & 3 deletions lib/go/contracts/internal/assets/assets.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/go/test/subedition_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ func TestSubeditions(t *testing.T) {
expectedPublicPath := "/public/MomentCollection"
expectedCollectionName := "NBA-Top-Shot"
expectedCollectionDescription := "NBA Top Shot is your chance to own, sell, and trade official digital collectibles of the NBA and WNBA's greatest plays and players"
expectedCollectionSquareImage := "https://nbatopshot.com/static/img/og/og.png"
expectedCollectionSquareImage := "https://nbatopshot.com/static/favicon/favicon.svg"
expectedCollectionBannerImage := "https://nbatopshot.com/static/img/top-shot-logo-horizontal-white.svg"
expectedRoyaltyReceiversCount := 1
expectedTraitsCount := 6
Expand Down
2 changes: 1 addition & 1 deletion lib/go/test/topshot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ func TestMintNFTs(t *testing.T) {
expectedPublicPath := "/public/MomentCollection"
expectedCollectionName := "NBA-Top-Shot"
expectedCollectionDescription := "NBA Top Shot is your chance to own, sell, and trade official digital collectibles of the NBA and WNBA's greatest plays and players"
expectedCollectionSquareImage := "https://nbatopshot.com/static/img/og/og.png"
expectedCollectionSquareImage := "https://nbatopshot.com/static/favicon/favicon.svg"
expectedCollectionBannerImage := "https://nbatopshot.com/static/img/top-shot-logo-horizontal-white.svg"
expectedRoyaltyReceiversCount := 1
expectedTraitsCount := 7
Expand Down

0 comments on commit 066c364

Please sign in to comment.