@@ -65,15 +65,15 @@ public class ERC1410: IERC1410, ERC20BaseProperties {
6565
6666 public func getBalance( account: EthereumAddress ) async throws -> BigUInt {
6767 let contract = self . contract
68- self . transaction. callOnBlock = . latest
68+ transaction. callOnBlock = . latest
6969 let result = try await contract. createReadOperation ( " balanceOf " , parameters: [ account] as [ AnyObject ] , extraData: Data ( ) ) !. callContractMethod ( )
7070 guard let res = result [ " 0 " ] as? BigUInt else { throw Web3Error . processingError ( desc: " Failed to get result of expected type from the Ethereum node " ) }
7171 return res
7272 }
7373
7474 public func getAllowance( originalOwner: EthereumAddress , delegate: EthereumAddress ) async throws -> BigUInt {
7575 let contract = self . contract
76- self . transaction. callOnBlock = . latest
76+ transaction. callOnBlock = . latest
7777 let result = try await contract. createReadOperation ( " allowance " , parameters: [ originalOwner, delegate] as [ AnyObject ] , extraData: Data ( ) ) !. callContractMethod ( )
7878 guard let res = result [ " 0 " ] as? BigUInt else { throw Web3Error . processingError ( desc: " Failed to get result of expected type from the Ethereum node " ) }
7979 return res
@@ -84,7 +84,7 @@ public class ERC1410: IERC1410, ERC20BaseProperties {
8484
8585 self . transaction. from = from
8686 self . transaction. to = self . address
87- self . transaction. callOnBlock = . latest
87+ transaction. callOnBlock = . latest
8888
8989 // get the decimals manually
9090 let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
@@ -106,7 +106,7 @@ public class ERC1410: IERC1410, ERC20BaseProperties {
106106
107107 self . transaction. from = from
108108 self . transaction. to = self . address
109- self . transaction. callOnBlock = . latest
109+ transaction. callOnBlock = . latest
110110
111111 // get the decimals manually
112112 let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
@@ -129,7 +129,7 @@ public class ERC1410: IERC1410, ERC20BaseProperties {
129129
130130 self . transaction. from = from
131131 self . transaction. to = self . address
132- self . transaction. callOnBlock = . latest
132+ transaction. callOnBlock = . latest
133133
134134 // get the decimals manually
135135 let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
@@ -150,7 +150,7 @@ public class ERC1410: IERC1410, ERC20BaseProperties {
150150 public func totalSupply( ) async throws -> BigUInt {
151151 let contract = self . contract
152152
153- self . transaction. callOnBlock = . latest
153+ transaction. callOnBlock = . latest
154154 let result = try await contract. createReadOperation ( " totalSupply " , parameters: [ AnyObject] ( ) , extraData: Data ( ) ) !. callContractMethod ( )
155155 guard let res = result [ " 0 " ] as? BigUInt else { throw Web3Error . processingError ( desc: " Failed to get result of expected type from the Ethereum node " ) }
156156 return res
@@ -161,7 +161,7 @@ public class ERC1410: IERC1410, ERC20BaseProperties {
161161
162162 self . transaction. from = from
163163 self . transaction. to = self . address
164- self . transaction. callOnBlock = . latest
164+ transaction. callOnBlock = . latest
165165
166166 // get the decimals manually
167167 let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
@@ -183,15 +183,15 @@ public class ERC1410: IERC1410, ERC20BaseProperties {
183183 public func balanceOfByPartition( partition: Data , tokenHolder: EthereumAddress ) async throws -> BigUInt {
184184 let contract = self . contract
185185
186- self . transaction. callOnBlock = . latest
186+ transaction. callOnBlock = . latest
187187 let result = try await contract. createReadOperation ( " balanceOfByPartition " , parameters: [ partition, tokenHolder] as [ AnyObject ] , extraData: Data ( ) ) !. callContractMethod ( )
188188 guard let res = result [ " 0 " ] as? BigUInt else { throw Web3Error . processingError ( desc: " Failed to get result of expected type from the Ethereum node " ) }
189189 return res
190190 }
191191
192192 public func partitionsOf( tokenHolder: EthereumAddress ) async throws -> [ Data ] {
193193 let contract = self . contract
194- self . transaction. callOnBlock = . latest
194+ transaction. callOnBlock = . latest
195195 let result = try await contract. createReadOperation ( " partitionsOf " , parameters: [ tokenHolder] as [ AnyObject ] , extraData: Data ( ) ) !. callContractMethod ( )
196196 guard let res = result [ " 0 " ] as? [ Data ] else { throw Web3Error . processingError ( desc: " Failed to get result of expected type from the Ethereum node " ) }
197197 return res
@@ -202,7 +202,7 @@ public class ERC1410: IERC1410, ERC20BaseProperties {
202202
203203 self . transaction. from = from
204204 self . transaction. to = self . address
205- self . transaction. callOnBlock = . latest
205+ transaction. callOnBlock = . latest
206206
207207 // get the decimals manually
208208 let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
@@ -225,7 +225,7 @@ public class ERC1410: IERC1410, ERC20BaseProperties {
225225
226226 self . transaction. from = from
227227 self . transaction. to = self . address
228- self . transaction. callOnBlock = . latest
228+ transaction. callOnBlock = . latest
229229
230230 // get the decimals manually
231231 let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
@@ -245,7 +245,7 @@ public class ERC1410: IERC1410, ERC20BaseProperties {
245245
246246 public func canTransferByPartition( originalOwner: EthereumAddress , to: EthereumAddress , partition: Data , amount: String , data: [ UInt8 ] ) async throws -> ( [ UInt8 ] , Data , Data ) {
247247 let contract = self . contract
248- self . transaction. callOnBlock = . latest
248+ transaction. callOnBlock = . latest
249249
250250 // get the decimals manually
251251 let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
@@ -266,15 +266,15 @@ public class ERC1410: IERC1410, ERC20BaseProperties {
266266
267267 public func isOperator( operator user: EthereumAddress , tokenHolder: EthereumAddress ) async throws -> Bool {
268268 let contract = self . contract
269- self . transaction. callOnBlock = . latest
269+ transaction. callOnBlock = . latest
270270 let result = try await contract. createReadOperation ( " isOperator " , parameters: [ user, tokenHolder] as [ AnyObject ] , extraData: Data ( ) ) !. callContractMethod ( )
271271 guard let res = result [ " 0 " ] as? Bool else { throw Web3Error . processingError ( desc: " Failed to get result of expected type from the Ethereum node " ) }
272272 return res
273273 }
274274
275275 public func isOperatorForPartition( partition: Data , operator user: EthereumAddress , tokenHolder: EthereumAddress ) async throws -> Bool {
276276 let contract = self . contract
277- self . transaction. callOnBlock = . latest
277+ transaction. callOnBlock = . latest
278278 let result = try await contract. createReadOperation ( " isOperatorForPartition " , parameters: [ partition, user, tokenHolder] as [ AnyObject ] , extraData: Data ( ) ) !. callContractMethod ( )
279279 guard let res = result [ " 0 " ] as? Bool else { throw Web3Error . processingError ( desc: " Failed to get result of expected type from the Ethereum node " ) }
280280 return res
@@ -325,7 +325,7 @@ public class ERC1410: IERC1410, ERC20BaseProperties {
325325
326326 self . transaction. from = from
327327 self . transaction. to = self . address
328- self . transaction. callOnBlock = . latest
328+ transaction. callOnBlock = . latest
329329
330330 // get the decimals manually
331331 let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
@@ -348,7 +348,7 @@ public class ERC1410: IERC1410, ERC20BaseProperties {
348348
349349 self . transaction. from = from
350350 self . transaction. to = self . address
351- self . transaction. callOnBlock = . latest
351+ transaction. callOnBlock = . latest
352352
353353 // get the decimals manually
354354 let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
@@ -371,7 +371,7 @@ public class ERC1410: IERC1410, ERC20BaseProperties {
371371
372372 self . transaction. from = from
373373 self . transaction. to = self . address
374- self . transaction. callOnBlock = . latest
374+ transaction. callOnBlock = . latest
375375
376376 // get the decimals manually
377377 let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
@@ -393,15 +393,15 @@ public class ERC1410: IERC1410, ERC20BaseProperties {
393393extension ERC1410 : IERC777 {
394394 public func canImplementInterfaceForAddress( interfaceHash: Data , addr: EthereumAddress ) async throws -> Data {
395395 let contract = self . contract
396- self . transaction. callOnBlock = . latest
396+ transaction. callOnBlock = . latest
397397 let result = try await contract. createReadOperation ( " canImplementInterfaceForAddress " , parameters: [ interfaceHash, addr] as [ AnyObject ] , extraData: Data ( ) ) !. callContractMethod ( )
398398 guard let res = result [ " 0 " ] as? Data else { throw Web3Error . processingError ( desc: " Failed to get result of expected type from the Ethereum node " ) }
399399 return res
400400 }
401401
402402 public func getInterfaceImplementer( addr: EthereumAddress , interfaceHash: Data ) async throws -> EthereumAddress {
403403 let contract = self . contract
404- self . transaction. callOnBlock = . latest
404+ transaction. callOnBlock = . latest
405405 let result = try await contract. createReadOperation ( " getInterfaceImplementer " , parameters: [ addr, interfaceHash] as [ AnyObject ] , extraData: Data ( ) ) !. callContractMethod ( )
406406 guard let res = result [ " 0 " ] as? EthereumAddress else { throw Web3Error . processingError ( desc: " Failed to get result of expected type from the Ethereum node " ) }
407407 return res
@@ -427,7 +427,7 @@ extension ERC1410: IERC777 {
427427
428428 public func interfaceHash( interfaceName: String ) async throws -> Data {
429429 let contract = self . contract
430- self . transaction. callOnBlock = . latest
430+ transaction. callOnBlock = . latest
431431 let result = try await contract. createReadOperation ( " interfaceHash " , parameters: [ interfaceName] as [ AnyObject ] , extraData: Data ( ) ) !. callContractMethod ( )
432432 guard let res = result [ " 0 " ] as? Data else { throw Web3Error . processingError ( desc: " Failed to get result of expected type from the Ethereum node " ) }
433433 return res
@@ -444,7 +444,7 @@ extension ERC1410: IERC777 {
444444
445445 public func supportsInterface( interfaceID: String ) async throws -> Bool {
446446 let contract = self . contract
447- self . transaction. callOnBlock = . latest
447+ transaction. callOnBlock = . latest
448448 let result = try await contract. createReadOperation ( " supportsInterface " , parameters: [ interfaceID] as [ AnyObject ] , extraData: Data ( ) ) !. callContractMethod ( )
449449 guard let res = result [ " 0 " ] as? Bool else { throw Web3Error . processingError ( desc: " Failed to get result of expected type from the Ethereum node " ) }
450450 return res
@@ -454,7 +454,7 @@ extension ERC1410: IERC777 {
454454 let contract = self . contract
455455
456456 self . transaction. from = from
457- self . transaction. callOnBlock = . latest
457+ transaction. callOnBlock = . latest
458458
459459 let tx = contract. createWriteOperation ( " authorizeOperator " , parameters: [ user] as [ AnyObject ] ) !
460460 return tx
@@ -464,15 +464,15 @@ extension ERC1410: IERC777 {
464464 let contract = self . contract
465465
466466 self . transaction. from = from
467- self . transaction. callOnBlock = . latest
467+ transaction. callOnBlock = . latest
468468
469469 let tx = contract. createWriteOperation ( " revokeOperator " , parameters: [ user] as [ AnyObject ] ) !
470470 return tx
471471 }
472472
473473 public func isOperatorFor( operator user: EthereumAddress , tokenHolder: EthereumAddress ) async throws -> Bool {
474474 let contract = self . contract
475- self . transaction. callOnBlock = . latest
475+ transaction. callOnBlock = . latest
476476 let result = try await contract. createReadOperation ( " isOperatorFor " , parameters: [ user, tokenHolder] as [ AnyObject ] , extraData: Data ( ) ) !. callContractMethod ( )
477477 guard let res = result [ " 0 " ] as? Bool else { throw Web3Error . processingError ( desc: " Failed to get result of expected type from the Ethereum node " ) }
478478 return res
@@ -483,7 +483,7 @@ extension ERC1410: IERC777 {
483483
484484 self . transaction. from = from
485485 self . transaction. to = self . address
486- self . transaction. callOnBlock = . latest
486+ transaction. callOnBlock = . latest
487487
488488 // get the decimals manually
489489 let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
@@ -505,7 +505,7 @@ extension ERC1410: IERC777 {
505505
506506 self . transaction. from = from
507507 self . transaction. to = self . address
508- self . transaction. callOnBlock = . latest
508+ transaction. callOnBlock = . latest
509509
510510 // get the decimals manually
511511 let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
@@ -527,7 +527,7 @@ extension ERC1410: IERC777 {
527527
528528 self . transaction. from = from
529529 self . transaction. to = self . address
530- self . transaction. callOnBlock = . latest
530+ transaction. callOnBlock = . latest
531531
532532 // get the decimals manually
533533 let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
@@ -549,7 +549,7 @@ extension ERC1410: IERC777 {
549549
550550 self . transaction. from = from
551551 self . transaction. to = self . address
552- self . transaction. callOnBlock = . latest
552+ transaction. callOnBlock = . latest
553553
554554 // get the decimals manually
555555 let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
@@ -568,15 +568,15 @@ extension ERC1410: IERC777 {
568568
569569 public func getGranularity( ) async throws -> BigUInt {
570570 let contract = self . contract
571- self . transaction. callOnBlock = . latest
571+ transaction. callOnBlock = . latest
572572 let result = try await contract. createReadOperation ( " granularity " , parameters: [ ] as [ AnyObject ] , extraData: Data ( ) ) !. callContractMethod ( )
573573 guard let res = result [ " 0 " ] as? BigUInt else { throw Web3Error . processingError ( desc: " Failed to get result of expected type from the Ethereum node " ) }
574574 return res
575575 }
576576
577577 public func getDefaultOperators( ) async throws -> [ EthereumAddress ] {
578578 let contract = self . contract
579- self . transaction. callOnBlock = . latest
579+ transaction. callOnBlock = . latest
580580 let result = try await contract. createReadOperation ( " defaultOperators " , parameters: [ ] as [ AnyObject ] , extraData: Data ( ) ) !. callContractMethod ( )
581581 guard let res = result [ " 0 " ] as? [ EthereumAddress ] else { throw Web3Error . processingError ( desc: " Failed to get result of expected type from the Ethereum node " ) }
582582 return res
0 commit comments