@@ -121,7 +121,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
121121 guard let value = Utilities . parseToBigUInt ( amount, decimals: intDecimals) else {
122122 throw Web3Error . inputError ( desc: " Can not parse inputted amount " )
123123 }
124- let tx = contract. createWriteOperation ( " transfer " , parameters: [ to, value] ) !
124+ let tx = contract. createWriteOperation ( " transfer " , parameters: [ to, value] ) !
125125 return tx
126126 }
127127
@@ -143,7 +143,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
143143 throw Web3Error . inputError ( desc: " Can not parse inputted amount " )
144144 }
145145
146- let tx = contract. createWriteOperation ( " transferFrom " , parameters: [ originalOwner, to, value] ) !
146+ let tx = contract. createWriteOperation ( " transferFrom " , parameters: [ originalOwner, to, value] ) !
147147 return tx
148148 }
149149
@@ -165,7 +165,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
165165 throw Web3Error . inputError ( desc: " Can not parse inputted amount " )
166166 }
167167
168- let tx = contract. createWriteOperation ( " setAllowance " , parameters: [ to, value] ) !
168+ let tx = contract. createWriteOperation ( " setAllowance " , parameters: [ to, value] ) !
169169 return tx
170170 }
171171
@@ -187,7 +187,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
187187 throw Web3Error . inputError ( desc: " Can not parse inputted amount " )
188188 }
189189
190- let tx = contract. createWriteOperation ( " approve " , parameters: [ spender, value] ) !
190+ let tx = contract. createWriteOperation ( " approve " , parameters: [ spender, value] ) !
191191 return tx
192192 }
193193
@@ -220,7 +220,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
220220 throw Web3Error . inputError ( desc: " Can not parse inputted amount " )
221221 }
222222
223- let tx = contract. createWriteOperation ( " approve " , parameters: [ spender, eValue, nValue] ) !
223+ let tx = contract. createWriteOperation ( " approve " , parameters: [ spender, eValue, nValue] ) !
224224 return tx
225225 }
226226
@@ -242,7 +242,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
242242 throw Web3Error . inputError ( desc: " Can not parse inputted amount " )
243243 }
244244
245- let tx = contract. createWriteOperation ( " increaseAllowance " , parameters: [ spender, amount] ) !
245+ let tx = contract. createWriteOperation ( " increaseAllowance " , parameters: [ spender, amount] ) !
246246 return tx
247247 }
248248
@@ -264,7 +264,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
264264 throw Web3Error . inputError ( desc: " Can not parse inputted amount " )
265265 }
266266
267- let tx = contract. createWriteOperation ( " decreaseAllowance " , parameters: [ spender, amount, strict] ) !
267+ let tx = contract. createWriteOperation ( " decreaseAllowance " , parameters: [ spender, amount, strict] ) !
268268 return tx
269269 }
270270
@@ -273,7 +273,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
273273 self . transaction. from = from
274274 self . transaction. to = self . address
275275
276- let tx = contract. createWriteOperation ( " setERC20ApproveChecking " , parameters: [ approveChecking] ) !
276+ let tx = contract. createWriteOperation ( " setERC20ApproveChecking " , parameters: [ approveChecking] ) !
277277 return tx
278278 }
279279
@@ -302,7 +302,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
302302 guard let value = Utilities . parseToBigUInt ( data, decimals: intDecimals) else {
303303 throw Web3Error . inputError ( desc: " Can not parse inputted amount " )
304304 }
305- let tx = contract. createWriteOperation ( " transfer " , parameters: [ value] ) !
305+ let tx = contract. createWriteOperation ( " transfer " , parameters: [ value] ) !
306306 return tx
307307 }
308308
@@ -323,7 +323,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
323323 guard let amount = Utilities . parseToBigUInt ( value, decimals: intDecimals) else {
324324 throw Web3Error . inputError ( desc: " Can not parse inputted amount " )
325325 }
326- let tx = contract. createWriteOperation ( " transferAndCall " , parameters: [ to, amount, data] ) !
326+ let tx = contract. createWriteOperation ( " transferAndCall " , parameters: [ to, amount, data] ) !
327327 return tx
328328 }
329329
@@ -341,7 +341,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
341341 self . transaction. to = self . address
342342 self . transaction. callOnBlock = . latest
343343
344- let tx = contract. createWriteOperation ( " increaseNonce " , parameters: [ ] ) !
344+ let tx = contract. createWriteOperation ( " increaseNonce " , parameters: [ ] ) !
345345 return tx
346346 }
347347
@@ -365,7 +365,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
365365
366366 let modeValue = mode. rawValue
367367
368- let tx = contract. createWriteOperation ( " delegateTransferAndCall " , parameters: [ nonce, fee, gasAmount, to, amount, data, modeValue, v, r, s] ) !
368+ let tx = contract. createWriteOperation ( " delegateTransferAndCall " , parameters: [ nonce, fee, gasAmount, to, amount, data, modeValue, v, r, s] ) !
369369 return tx
370370 }
371371
@@ -382,7 +382,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
382382 self . transaction. from = from
383383 self . transaction. to = self . address
384384
385- let tx = contract. createWriteOperation ( " setupDirectDebit " , parameters: [ receiver, info] ) !
385+ let tx = contract. createWriteOperation ( " setupDirectDebit " , parameters: [ receiver, info] ) !
386386 return tx
387387 }
388388
@@ -391,7 +391,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
391391 self . transaction. from = from
392392 self . transaction. to = self . address
393393
394- let tx = contract. createWriteOperation ( " terminateDirectDebit " , parameters: [ receiver] ) !
394+ let tx = contract. createWriteOperation ( " terminateDirectDebit " , parameters: [ receiver] ) !
395395 return tx
396396 }
397397
@@ -400,7 +400,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
400400 self . transaction. from = from
401401 self . transaction. to = self . address
402402
403- let tx = contract. createWriteOperation ( " withdrawDirectDebit " , parameters: [ debtor] ) !
403+ let tx = contract. createWriteOperation ( " withdrawDirectDebit " , parameters: [ debtor] ) !
404404 return tx
405405 }
406406
@@ -409,7 +409,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
409409 self . transaction. from = from
410410 self . transaction. to = self . address
411411
412- let tx = contract. createWriteOperation ( " withdrawDirectDebit " , parameters: [ debtors, strict] ) !
412+ let tx = contract. createWriteOperation ( " withdrawDirectDebit " , parameters: [ debtors, strict] ) !
413413 return tx
414414 }
415415}
0 commit comments