Skip to content

Commit

Permalink
pack fix
Browse files Browse the repository at this point in the history
  • Loading branch information
0xFirekeeper committed Mar 16, 2023
1 parent 2a96888 commit 34c8975
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Assets/Thirdweb/Examples/Scripts/Prefabs/Prefab_Writing.cs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public async void OpenPack()

// NewPackInput newPackInput = new NewPackInput()
// {
// rewardsPerPack = "10",
// rewardsPerPack = "1",
// packMetadata = new NFTMetadata()
// {
// description = "Kitty Pack - Contains Kitty NFTs and Tokens!",
Expand All @@ -203,7 +203,7 @@ public async void OpenPack()
// },
// erc721Contents = new List<ERC721Contents>()
// {
// new ERC721Contents() { contractAddress = TOKEN_ERC721_CONTRACT, tokenId = "1", }
// new ERC721Contents() { contractAddress = TOKEN_ERC721_CONTRACT, tokenId = "11", }
// },
// erc1155Contents = new List<ERC1155Contents>()
// {
Expand All @@ -216,11 +216,11 @@ public async void OpenPack()
// }
// },
// };
// Make sure you approve tokens first
// // Make sure you approve tokens first
// var result = await pack.Create(newPackInput);
// Debugger.Instance.Log("[Create Pack] Successful", result.ToString());

PackRewards rewards = await pack.Open("0");
PackRewards rewards = await pack.Open("1");
Debugger.Instance.Log("[Open Pack] Successful", rewards.ToString());
}
catch (System.Exception e)
Expand Down

0 comments on commit 34c8975

Please sign in to comment.