-
Notifications
You must be signed in to change notification settings - Fork 972
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add animation URLS to Opensea Asset (#968)
* Include animation urls in asset (#325) * Add getAsset integration test --------- Co-authored-by: Will Harris <[email protected]>
- Loading branch information
1 parent
56b51da
commit 939136a
Showing
3 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { assert } from "chai"; | ||
import { suite, test } from "mocha"; | ||
import { sdk } from "./init"; | ||
|
||
suite("SDK: getAsset", () => { | ||
test("Get Asset", async () => { | ||
const tokenAddress = "0x059edd72cd353df5106d2b9cc5ab83a52287ac3a"; // Chromie Squiggles | ||
const assetToGet = { | ||
tokenAddress, | ||
tokenId: "1", | ||
}; | ||
const asset = await sdk.api.getAsset(assetToGet); | ||
assert(asset, "Asset should not be null"); | ||
assert( | ||
asset.assetContract.address === tokenAddress, | ||
"Contract address should match." | ||
); | ||
assert(asset.animationUrl, "Animation URL should not be null"); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters