@@ -121,7 +121,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
121
121
guard let value = Utilities . parseToBigUInt ( amount, decimals: intDecimals) else {
122
122
throw Web3Error . inputError ( desc: " Can not parse inputted amount " )
123
123
}
124
- let tx = contract. createWriteOperation ( " transfer " , parameters: [ to, value] ) !
124
+ let tx = contract. createWriteOperation ( " transfer " , parameters: [ to, value] ) !
125
125
return tx
126
126
}
127
127
@@ -143,7 +143,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
143
143
throw Web3Error . inputError ( desc: " Can not parse inputted amount " )
144
144
}
145
145
146
- let tx = contract. createWriteOperation ( " transferFrom " , parameters: [ originalOwner, to, value] ) !
146
+ let tx = contract. createWriteOperation ( " transferFrom " , parameters: [ originalOwner, to, value] ) !
147
147
return tx
148
148
}
149
149
@@ -165,7 +165,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
165
165
throw Web3Error . inputError ( desc: " Can not parse inputted amount " )
166
166
}
167
167
168
- let tx = contract. createWriteOperation ( " setAllowance " , parameters: [ to, value] ) !
168
+ let tx = contract. createWriteOperation ( " setAllowance " , parameters: [ to, value] ) !
169
169
return tx
170
170
}
171
171
@@ -187,7 +187,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
187
187
throw Web3Error . inputError ( desc: " Can not parse inputted amount " )
188
188
}
189
189
190
- let tx = contract. createWriteOperation ( " approve " , parameters: [ spender, value] ) !
190
+ let tx = contract. createWriteOperation ( " approve " , parameters: [ spender, value] ) !
191
191
return tx
192
192
}
193
193
@@ -220,7 +220,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
220
220
throw Web3Error . inputError ( desc: " Can not parse inputted amount " )
221
221
}
222
222
223
- let tx = contract. createWriteOperation ( " approve " , parameters: [ spender, eValue, nValue] ) !
223
+ let tx = contract. createWriteOperation ( " approve " , parameters: [ spender, eValue, nValue] ) !
224
224
return tx
225
225
}
226
226
@@ -242,7 +242,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
242
242
throw Web3Error . inputError ( desc: " Can not parse inputted amount " )
243
243
}
244
244
245
- let tx = contract. createWriteOperation ( " increaseAllowance " , parameters: [ spender, amount] ) !
245
+ let tx = contract. createWriteOperation ( " increaseAllowance " , parameters: [ spender, amount] ) !
246
246
return tx
247
247
}
248
248
@@ -264,7 +264,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
264
264
throw Web3Error . inputError ( desc: " Can not parse inputted amount " )
265
265
}
266
266
267
- let tx = contract. createWriteOperation ( " decreaseAllowance " , parameters: [ spender, amount, strict] ) !
267
+ let tx = contract. createWriteOperation ( " decreaseAllowance " , parameters: [ spender, amount, strict] ) !
268
268
return tx
269
269
}
270
270
@@ -273,7 +273,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
273
273
self . transaction. from = from
274
274
self . transaction. to = self . address
275
275
276
- let tx = contract. createWriteOperation ( " setERC20ApproveChecking " , parameters: [ approveChecking] ) !
276
+ let tx = contract. createWriteOperation ( " setERC20ApproveChecking " , parameters: [ approveChecking] ) !
277
277
return tx
278
278
}
279
279
@@ -302,7 +302,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
302
302
guard let value = Utilities . parseToBigUInt ( data, decimals: intDecimals) else {
303
303
throw Web3Error . inputError ( desc: " Can not parse inputted amount " )
304
304
}
305
- let tx = contract. createWriteOperation ( " transfer " , parameters: [ value] ) !
305
+ let tx = contract. createWriteOperation ( " transfer " , parameters: [ value] ) !
306
306
return tx
307
307
}
308
308
@@ -323,7 +323,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
323
323
guard let amount = Utilities . parseToBigUInt ( value, decimals: intDecimals) else {
324
324
throw Web3Error . inputError ( desc: " Can not parse inputted amount " )
325
325
}
326
- let tx = contract. createWriteOperation ( " transferAndCall " , parameters: [ to, amount, data] ) !
326
+ let tx = contract. createWriteOperation ( " transferAndCall " , parameters: [ to, amount, data] ) !
327
327
return tx
328
328
}
329
329
@@ -341,7 +341,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
341
341
self . transaction. to = self . address
342
342
self . transaction. callOnBlock = . latest
343
343
344
- let tx = contract. createWriteOperation ( " increaseNonce " , parameters: [ ] ) !
344
+ let tx = contract. createWriteOperation ( " increaseNonce " , parameters: [ ] ) !
345
345
return tx
346
346
}
347
347
@@ -365,7 +365,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
365
365
366
366
let modeValue = mode. rawValue
367
367
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] ) !
369
369
return tx
370
370
}
371
371
@@ -382,7 +382,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
382
382
self . transaction. from = from
383
383
self . transaction. to = self . address
384
384
385
- let tx = contract. createWriteOperation ( " setupDirectDebit " , parameters: [ receiver, info] ) !
385
+ let tx = contract. createWriteOperation ( " setupDirectDebit " , parameters: [ receiver, info] ) !
386
386
return tx
387
387
}
388
388
@@ -391,7 +391,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
391
391
self . transaction. from = from
392
392
self . transaction. to = self . address
393
393
394
- let tx = contract. createWriteOperation ( " terminateDirectDebit " , parameters: [ receiver] ) !
394
+ let tx = contract. createWriteOperation ( " terminateDirectDebit " , parameters: [ receiver] ) !
395
395
return tx
396
396
}
397
397
@@ -400,7 +400,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
400
400
self . transaction. from = from
401
401
self . transaction. to = self . address
402
402
403
- let tx = contract. createWriteOperation ( " withdrawDirectDebit " , parameters: [ debtor] ) !
403
+ let tx = contract. createWriteOperation ( " withdrawDirectDebit " , parameters: [ debtor] ) !
404
404
return tx
405
405
}
406
406
@@ -409,7 +409,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
409
409
self . transaction. from = from
410
410
self . transaction. to = self . address
411
411
412
- let tx = contract. createWriteOperation ( " withdrawDirectDebit " , parameters: [ debtors, strict] ) !
412
+ let tx = contract. createWriteOperation ( " withdrawDirectDebit " , parameters: [ debtors, strict] ) !
413
413
return tx
414
414
}
415
415
}
0 commit comments