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

Commit e6853bf

Browse files
authored
Fix usage of super() (#123)
Fix super()
1 parent a26a726 commit e6853bf

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

thirdweb/contracts/custom.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33

44
from web3 import Web3
55
from web3.contract import ContractFunctions, ContractFunction
6-
from thirdweb.abi.i_token_erc1155 import ITokenERC1155
7-
from thirdweb.abi.i_token_erc20 import ITokenERC20
8-
from thirdweb.abi.i_token_erc721 import ITokenERC721
96
from thirdweb.abi.token_erc1155 import TokenERC1155
107
from thirdweb.abi.token_erc20 import TokenERC20
118
from thirdweb.abi.token_erc721 import TokenERC721

thirdweb/core/classes/erc_1155_standard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class ERC1155Standard(Generic[TERC1155], BaseContract[TERC1155]):
1111
_erc1155: ERC1155
1212

1313
def __init__(self, contract_wrapper: ContractWrapper, storage: IpfsStorage):
14-
super(contract_wrapper)
14+
super().__init__(contract_wrapper)
1515
self._storage = storage
1616

1717
self._erc1155 = ERC1155(contract_wrapper, storage)

thirdweb/core/classes/erc_20_standard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class ERC20Standard(BaseContract[TokenERC20]):
1010
_erc20: ERC20
1111

1212
def __init__(self, contract_wrapper: ContractWrapper, storage: IpfsStorage):
13-
super(contract_wrapper)
13+
super().__init__(contract_wrapper)
1414
self._storage = storage
1515

1616
self._erc20 = ERC20(contract_wrapper, storage)

thirdweb/core/classes/erc_721_standard.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ def __init__(
1515
contract_wrapper: ContractWrapper,
1616
storage: IpfsStorage,
1717
):
18-
super(contract_wrapper)
19-
self.storage = storage
18+
super().__init__(contract_wrapper)
19+
self._storage = storage
2020

2121
self._erc721 = ERC721(contract_wrapper, storage)
2222
self.get = self._erc721.get

0 commit comments

Comments
 (0)