summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornolash <dev@holbrook.no>2021-05-08 08:04:48 +0200
committernolash <dev@holbrook.no>2021-05-08 08:04:48 +0200
commit7401df4734854b16c75c2dd999f82404bda99ddb (patch)
tree5cc456e86b6756f75080ccd98268553ce18fb6ee
parent0a98d041f5423a82bd9363a19eabe0425bd3e35f (diff)
Invalidate inherited erc20 transfer
-rw-r--r--python/eth_devbadge/token.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/python/eth_devbadge/token.py b/python/eth_devbadge/token.py
index d93da12..482be4f 100644
--- a/python/eth_devbadge/token.py
+++ b/python/eth_devbadge/token.py
@@ -53,7 +53,7 @@ class BadgeToken(ERC20):
def gas(code=None):
return 1200000
-
+
def constructor(self, sender_address, declarator, name, symbol, tx_format=TxFormat.JSONRPC):
code = BadgeToken.bytecode()
enc = ABIContractEncoder()
@@ -66,6 +66,10 @@ class BadgeToken(ERC20):
return self.finalize(tx, tx_format)
+ def transfer(self, contract_address, sender_address, recipient_address, value, tx_format=TxFormat.JSONRPC):
+ raise NotImplementedError('EIP721 does not implement ERC20.transfer')
+
+
def mint_to(self, contract_address, sender_address, address, token_id, tx_format=TxFormat.JSONRPC):
enc = ABIContractEncoder()
enc.method('mintTo')
@@ -238,5 +242,3 @@ class BadgeToken(ERC20):
@classmethod
def parse_minted_at(self, v):
return abi_decode_single(ABIContractType.UINT256, v)
-
-