mirror of
https://github.com/jwinterm/tubbymemes.git
synced 2026-10-17 05:21:28 +02:00
remove unused func, no contract interaction
This commit is contained in:
@@ -6,19 +6,6 @@ from tubbymemes.factory import w3
|
||||
from tubbymemes import config
|
||||
|
||||
|
||||
def get_eth_contract():
|
||||
"""
|
||||
Return a web3 contract object with the currently
|
||||
deployed tubbymemes smart contract.
|
||||
"""
|
||||
contract_abi = config.CONTRACT_ABI
|
||||
contract_address = w3.toChecksumAddress(config.CONTRACT_ADDRESS)
|
||||
return w3.eth.contract(
|
||||
address=contract_address,
|
||||
abi=contract_abi
|
||||
)
|
||||
|
||||
|
||||
def verify_signature(message, signature, public_address):
|
||||
msg = encode_defunct(text=message)
|
||||
recovered = w3.eth.account.recover_message(msg, signature=signature)
|
||||
@@ -45,7 +32,6 @@ def upload_to_ipfs(meme_id: str):
|
||||
'file_name': meme.file_name,
|
||||
'ipfs_hash': artwork_hash,
|
||||
'properties': {
|
||||
'creator_handle': meme.user.handle,
|
||||
'creator_address': meme.user.public_address
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user