Skip to content

Commit 2f1b5e3

Browse files
committed
Add todos to fix non throwing contract
1 parent 6674f6d commit 2f1b5e3

File tree

13 files changed

+13
-12
lines changed

13 files changed

+13
-12
lines changed

Sources/web3swift/Tokens/ERC1376/Web3+ERC1376.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
8383
self.transaction = transaction
8484
self.transaction.to = address
8585
self.abi = abi
86-
// Forced because this should fail if contract is wrongly configured
86+
// TODO: Make `init` and `web3.contract.init` throwing. Forced because this should fail if ABI is wrongly configured
8787
contract = web3.contract(abi, at: address)!
8888
basePropertiesProvider = ERC20BasePropertiesProvider(contract: contract)
8989
}

Sources/web3swift/Tokens/ERC1400/Web3+ERC1400.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public class ERC1400: IERC1400, ERC20BaseProperties {
8080
self.transaction = transaction
8181
self.transaction.to = address
8282
self.abi = abi
83-
// Forced because this should fail if contract is wrongly configured
83+
// TODO: Make `init` and `web3.contract.init` throwing. Forced because this should fail if ABI is wrongly configured
8484
contract = web3.contract(abi, at: address)!
8585
basePropertiesProvider = ERC20BasePropertiesProvider(contract: contract)
8686
}

Sources/web3swift/Tokens/ERC1410/Web3+ERC1410.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public class ERC1410: IERC1410, ERC20BaseProperties {
5858
self.abi = abi
5959
self.transaction = transaction
6060
self.transaction.to = address
61-
// Forced because this should fail if contract is wrongly configured
61+
// TODO: Make `init` and `web3.contract.init` throwing. Forced because this should fail if ABI is wrongly configured
6262
contract = web3.contract(abi, at: address)!
6363
basePropertiesProvider = ERC20BasePropertiesProvider(contract: contract)
6464
}

Sources/web3swift/Tokens/ERC1594/Web3+ERC1594.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public class ERC1594: IERC1594, ERC20BaseProperties {
4848
self.transaction = transaction
4949
self.transaction.to = address
5050
self.abi = abi
51-
// Forced because this should fail if contract is wrongly configured
51+
// TODO: Make `init` and `web3.contract.init` throwing. Forced because this should fail if ABI is wrongly configured
5252
contract = web3.contract(abi, at: address)!
5353
basePropertiesProvider = ERC20BasePropertiesProvider(contract: contract)
5454
}

Sources/web3swift/Tokens/ERC1633/Web3+ERC1633.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class ERC1633: IERC1633, ERC20BaseProperties {
3535
self.transaction = transaction
3636
self.transaction.to = address
3737
self.abi = abi
38-
// Forced because this should fail if contract is wrongly configured
38+
// TODO: Make `init` and `web3.contract.init` throwing. Forced because this should fail if ABI is wrongly configured
3939
contract = web3.contract(abi, at: address)!
4040
basePropertiesProvider = ERC20BasePropertiesProvider(contract: contract)
4141
}

Sources/web3swift/Tokens/ERC1643/Web3+ERC1643.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class ERC1643: IERC1643, ERC20BaseProperties {
3838
self.transaction = transaction
3939
self.transaction.to = address
4040
self.abi = abi
41-
// Forced because this should fail if contract is wrongly configured
41+
// TODO: Make `init` and `web3.contract.init` throwing. Forced because this should fail if ABI is wrongly configured
4242
contract = web3.contract(abi, at: address)!
4343
basePropertiesProvider = ERC20BasePropertiesProvider(contract: contract)
4444
}

Sources/web3swift/Tokens/ERC1644/Web3+ERC1644.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public class ERC1644: IERC1644, ERC20BaseProperties {
3737
self.transaction = transaction
3838
self.transaction.to = address
3939
self.abi = abi
40-
// Forced because this should fail if contract is wrongly configured
40+
// TODO: Make `init` and `web3.contract.init` throwing. Forced because this should fail if ABI is wrongly configured
4141
contract = web3.contract(abi, at: address)!
4242
basePropertiesProvider = ERC20BasePropertiesProvider(contract: contract)
4343
}

Sources/web3swift/Tokens/ERC20/Web3+ERC20.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class ERC20: IERC20, ERC20BaseProperties {
3636
self.provider = provider
3737
self.address = address
3838
self.transaction = transaction
39-
// Forced because this should fail if contract is wrongly configured
39+
// TODO: Make `init` and `web3.contract.init` throwing. Forced because this should fail if ABI is wrongly configured
4040
contract = web3.contract(Web3.Utils.erc20ABI, at: address)!
4141
basePropertiesProvider = ERC20BasePropertiesProvider(contract: contract)
4242
}

Sources/web3swift/Tokens/ERC777/Web3+ERC777.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public class ERC777: IERC777, ERC20BaseProperties {
4646
self.transaction = transaction
4747
self.transaction.to = address
4848
self.abi = abi
49-
// Forced because this should fail if contract is wrongly configured
49+
// TODO: Make `init` and `web3.contract.init` throwing. Forced because this should fail if ABI is wrongly configured
5050
contract = web3.contract(abi, at: address)!
5151
basePropertiesProvider = ERC20BasePropertiesProvider(contract: contract)
5252
}

Sources/web3swift/Tokens/ERC888/Web3+ERC888.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public class ERC888: IERC888, ERC20BaseProperties {
3333
self.transaction = transaction
3434
self.transaction.to = address
3535
self.abi = abi
36-
// Forced because this should fail if contract is wrongly configured
36+
// TODO: Make `init` and `web3.contract.init` throwing. Forced because this should fail if ABI is wrongly configured
3737
contract = web3.contract(abi, at: address)!
3838
basePropertiesProvider = ERC20BasePropertiesProvider(contract: contract)
3939
}

0 commit comments

Comments
 (0)