Skip to content
This repository was archived by the owner on May 3, 2024. It is now read-only.

Commit 4cfbcf8

Browse files
initial test file
1 parent 2b1b254 commit 4cfbcf8

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

tests/test_token_drop.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
from tkinter.tix import IMAGE
2+
from eth_account.account import LocalAccount
3+
from thirdweb.constants.currency import ZERO_ADDRESS
4+
from thirdweb.core.sdk import ThirdwebSDK
5+
from thirdweb.contracts import TokenDrop
6+
from brownie import accounts
7+
import pytest
8+
9+
from thirdweb.types.settings.metadata import TokenContractMetadata
10+
11+
12+
@pytest.mark.usefixtures("sdk", "primary_account")
13+
@pytest.fixture(scope="function")
14+
def token_drop(sdk: ThirdwebSDK, primary_account) -> TokenDrop:
15+
sdk.update_signer(primary_account)
16+
return sdk.get_token(
17+
sdk.deployer.deploy_token_drop(
18+
TokenContractMetadata(
19+
name="SDK Token",
20+
symbol="SDK",
21+
primary_sale_recipient=ZERO_ADDRESS,
22+
)
23+
)
24+
)

0 commit comments

Comments
 (0)