Skip to content

Commit

Permalink
Fix: Resolve promise for "editionDrop"
Browse files Browse the repository at this point in the history
- Add "await" for editionDrop as getEditionDrop returns a Promise.
  • Loading branch information
Nischal2015 committed Sep 26, 2022
1 parent e359e30 commit c2f9006
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion JS_DAO/en/Section_2/Lesson_1_Deploy_NFT_Bundle.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ import { readFileSync } from "fs";

// this initialization returns the address of our contract
// we use this to initialize the contract on the thirdweb sdk
const editionDrop = sdk.getEditionDrop(editionDropAddress);
const editionDrop = await sdk.getEditionDrop(editionDropAddress);

// with this, we can get the metadata of our contract
const metadata = await editionDrop.metadata.get();
Expand Down
4 changes: 2 additions & 2 deletions JS_DAO/en/Section_2/Lesson_2_Deploy_NFT_Metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Head over to `scripts/3-config-nft.js` and add in:
import sdk from "./1-initialize-sdk.js";
import { readFileSync } from "fs";

const editionDrop = sdk.getEditionDrop("INSERT_EDITION_DROP_ADDRESS");
const editionDrop = await sdk.getEditionDrop("INSERT_EDITION_DROP_ADDRESS");

(async () => {
try {
Expand Down Expand Up @@ -73,7 +73,7 @@ Head over to `scripts/4-set-claim-condition.js` and add:
import sdk from "./1-initialize-sdk.js";
import { MaxUint256 } from "@ethersproject/constants";

const editionDrop = sdk.getEditionDrop("INSERT_EDITION_DROP_ADDRESS");
const editionDrop = await sdk.getEditionDrop("INSERT_EDITION_DROP_ADDRESS");

(async () => {
try {
Expand Down

0 comments on commit c2f9006

Please sign in to comment.