commit 7401df4734854b16c75c2dd999f82404bda99ddb
parent 0a98d041f5423a82bd9363a19eabe0425bd3e35f
Author: nolash <dev@holbrook.no>
Date: Sat, 8 May 2021 08:04:48 +0200
Invalidate inherited erc20 transfer
Diffstat:
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git 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)
-
-