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 69b749e

Browse files
committed
tiny changes
1 parent 9f90899 commit 69b749e

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

nftlabs/modules/currency.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def set_module_metadata(metadata: str):
163163
"""
164164
Sets the metadata for the module
165165
"""
166-
uri = self.get_storage().Upload_metadata(
166+
uri = self.get_storage().upload_metadata(
167167
metadata, self.address, self.get_signer_address())
168168

169169
def get_value(self, value: int) -> Currency:

nftlabs/modules/market.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def __init__(self, client: Web3, address: str):
3232
self.__abi_module = Market(client, address)
3333

3434
#todo: return types
35-
def list(self, arg: ListArg) -> Listing:
35+
def list(self, arg: ListArg):
3636
"""
3737
List an asset for sale.
3838
"""
@@ -147,7 +147,7 @@ def set_module_metadata(metadata: str):
147147
"""
148148
Sets the metadata for the module
149149
"""
150-
uri = self.get_storage().Upload_metadata(
150+
uri = self.get_storage().upload_metadata(
151151
metadata, self.address, self.get_signer_address())
152152

153153
def get_listing(self, listing_id: int) -> Listing:

nftlabs/modules/nft.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def set_module_metadata(metadata: str):
271271
"""
272272
Sets the metadata for the module
273273
"""
274-
uri = self.get_storage().Upload_metadata(
274+
uri = self.get_storage().upload_metadata(
275275
metadata, self.address, self.get_signer_address())
276276

277277
def set_restricted_transfer(self, restricted: bool = False):

nftlabs/storage/ipfs_storage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ def upload(self, data, contract_address: str, signer_address: str) -> str:
4141
response = result.json()
4242
return response['IpfsUri']
4343

44-
def Upload_metadata(self, metadata: str, contract_address: str, signer_address: str) -> str:
44+
def upload_metadata(self, metadata: str, contract_address: str, signer_address: str) -> str:
4545
if type(metadata) == str:
4646
return self.upload(metadata, contract_address, signer_address)

0 commit comments

Comments
 (0)