@@ -99,7 +99,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
99
99
let contract = self . contract
100
100
var transactionOptions = CodableTransaction . emptyTransaction
101
101
transactionOptions. callOnBlock = . latest
102
- let result = try await contract. read ( " balanceOf " , parameters: [ account] as [ AnyObject ] , extraData: Data ( ) , transactionOptions: self . transactionOptions) !. decodedData ( with : transactionOptions )
102
+ let result = try await contract. read ( " balanceOf " , parameters: [ account] as [ AnyObject ] , extraData: Data ( ) , transactionOptions: self . transactionOptions) !. decodedData ( )
103
103
guard let res = result [ " 0 " ] as? BigUInt else { throw Web3Error . processingError ( desc: " Failed to get result of expected type from the Ethereum node " ) }
104
104
return res
105
105
}
@@ -108,7 +108,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
108
108
let contract = self . contract
109
109
var transactionOptions = CodableTransaction . emptyTransaction
110
110
transactionOptions. callOnBlock = . latest
111
- let result = try await contract. read ( " allowance " , parameters: [ originalOwner, delegate] as [ AnyObject ] , extraData: Data ( ) , transactionOptions: self . transactionOptions) !. decodedData ( with : transactionOptions )
111
+ let result = try await contract. read ( " allowance " , parameters: [ originalOwner, delegate] as [ AnyObject ] , extraData: Data ( ) , transactionOptions: self . transactionOptions) !. decodedData ( )
112
112
guard let res = result [ " 0 " ] as? BigUInt else { throw Web3Error . processingError ( desc: " Failed to get result of expected type from the Ethereum node " ) }
113
113
return res
114
114
}
@@ -208,7 +208,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
208
208
let contract = self . contract
209
209
var transactionOptions = CodableTransaction . emptyTransaction
210
210
transactionOptions. callOnBlock = . latest
211
- let result = try await contract. read ( " totalSupply " , parameters: [ AnyObject] ( ) , extraData: Data ( ) , transactionOptions: self . transactionOptions) !. decodedData ( with : transactionOptions )
211
+ let result = try await contract. read ( " totalSupply " , parameters: [ AnyObject] ( ) , extraData: Data ( ) , transactionOptions: self . transactionOptions) !. decodedData ( )
212
212
guard let res = result [ " 0 " ] as? BigUInt else { throw Web3Error . processingError ( desc: " Failed to get result of expected type from the Ethereum node " ) }
213
213
return res
214
214
}
@@ -299,7 +299,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
299
299
let contract = self . contract
300
300
var transactionOptions = CodableTransaction . emptyTransaction
301
301
transactionOptions. callOnBlock = . latest
302
- let result = try await contract. read ( " spendableAllowance " , parameters: [ owner, spender] as [ AnyObject ] , extraData: Data ( ) , transactionOptions: self . transactionOptions) !. decodedData ( with : transactionOptions )
302
+ let result = try await contract. read ( " spendableAllowance " , parameters: [ owner, spender] as [ AnyObject ] , extraData: Data ( ) , transactionOptions: self . transactionOptions) !. decodedData ( )
303
303
guard let res = result [ " 0 " ] as? BigUInt else { throw Web3Error . processingError ( desc: " Failed to get result of expected type from the Ethereum node " ) }
304
304
return res
305
305
}
@@ -352,7 +352,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
352
352
let contract = self . contract
353
353
var transactionOptions = CodableTransaction . emptyTransaction
354
354
transactionOptions. callOnBlock = . latest
355
- let result = try await contract. read ( " nonceOf " , parameters: [ owner] as [ AnyObject ] , extraData: Data ( ) , transactionOptions: self . transactionOptions) !. decodedData ( with : transactionOptions )
355
+ let result = try await contract. read ( " nonceOf " , parameters: [ owner] as [ AnyObject ] , extraData: Data ( ) , transactionOptions: self . transactionOptions) !. decodedData ( )
356
356
guard let res = result [ " 0 " ] as? BigUInt else { throw Web3Error . processingError ( desc: " Failed to get result of expected type from the Ethereum node " ) }
357
357
return res
358
358
}
@@ -397,7 +397,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
397
397
let contract = self . contract
398
398
var transactionOptions = CodableTransaction . emptyTransaction
399
399
transactionOptions. callOnBlock = . latest
400
- let result = try await contract. read ( " directDebit " , parameters: [ debtor, receiver] as [ AnyObject ] , extraData: Data ( ) , transactionOptions: self . transactionOptions) !. decodedData ( with : transactionOptions )
400
+ let result = try await contract. read ( " directDebit " , parameters: [ debtor, receiver] as [ AnyObject ] , extraData: Data ( ) , transactionOptions: self . transactionOptions) !. decodedData ( )
401
401
guard let res = result [ " 0 " ] as? DirectDebit else { throw Web3Error . processingError ( desc: " Failed to get result of expected type from the Ethereum node " ) }
402
402
return res
403
403
}
0 commit comments