Thanks to visit codestin.com
Credit goes to github.com

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

Commit 33db709

Browse files
committed
Updated imports to be relative in market module, fix return type on get method
1 parent 3c94e2d commit 33db709

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

thirdweb/modules/market.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
1-
from typing import Dict, List
1+
from typing import List
22

33
from thirdweb_web3 import Web3
44

5-
from nftlabs.modules.currency import CurrencyModule
6-
from nftlabs.modules.nft import NftModule
7-
85
from ..abi.erc20 import ERC20
96
from ..abi.erc1155 import ERC1155
107
from ..abi.market import Market, MarketListing
118
from ..abi.nft import NFT
129
from ..constants import ZeroAddress
1310
from ..errors import AssetNotFoundException, UnsupportedAssetException
14-
from ..types.currency import Currency, CurrencyValue
11+
from ..modules.currency import CurrencyModule
12+
from ..modules.nft import NftModule
13+
from ..types.currency import CurrencyValue
1514
from ..types.listing import Listing
1615
from ..types.market import Filter, ListArg, MarketListing
1716
from . import BaseModule
@@ -148,7 +147,7 @@ def set_market_fee_bps(self, amount: int):
148147
self.get_transact_opts())
149148
self.execute_tx(tx)
150149

151-
def get(self, listing_id) -> MarketListing:
150+
def get(self, listing_id) -> Listing:
152151
"""
153152
Get a listing.
154153
"""

0 commit comments

Comments
 (0)