@@ -106,7 +106,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
106
106
transaction. callOnBlock = . latest
107
107
updateTransactionAndContract ( from: from)
108
108
// get the decimals manually
109
- let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
109
+ let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
110
110
var decimals = BigUInt ( 0 )
111
111
guard let dec = callResult [ " 0 " ] , let decTyped = dec as? BigUInt else {
112
112
throw Web3Error . inputError ( desc: " Contract may be not ERC20 compatible, can not get decimals " ) }
@@ -124,7 +124,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
124
124
transaction. callOnBlock = . latest
125
125
updateTransactionAndContract ( from: from)
126
126
// get the decimals manually
127
- let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
127
+ let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
128
128
var decimals = BigUInt ( 0 )
129
129
guard let dec = callResult [ " 0 " ] , let decTyped = dec as? BigUInt else {
130
130
throw Web3Error . inputError ( desc: " Contract may be not ERC20 compatible, can not get decimals " ) }
@@ -142,7 +142,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
142
142
transaction. callOnBlock = . latest
143
143
updateTransactionAndContract ( from: from)
144
144
// get the decimals manually
145
- let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
145
+ let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
146
146
var decimals = BigUInt ( 0 )
147
147
guard let dec = callResult [ " 0 " ] , let decTyped = dec as? BigUInt else {
148
148
throw Web3Error . inputError ( desc: " Contract may be not ERC20 compatible, can not get decimals " ) }
@@ -160,7 +160,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
160
160
transaction. callOnBlock = . latest
161
161
updateTransactionAndContract ( from: from)
162
162
// get the decimals manually
163
- let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
163
+ let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
164
164
var decimals = BigUInt ( 0 )
165
165
guard let dec = callResult [ " 0 " ] , let decTyped = dec as? BigUInt else {
166
166
throw Web3Error . inputError ( desc: " Contract may be not ERC20 compatible, can not get decimals " ) }
@@ -185,7 +185,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
185
185
transaction. callOnBlock = . latest
186
186
updateTransactionAndContract ( from: from)
187
187
// get the decimals manually
188
- let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
188
+ let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
189
189
var decimals = BigUInt ( 0 )
190
190
guard let dec = callResult [ " 0 " ] , let decTyped = dec as? BigUInt else {
191
191
throw Web3Error . inputError ( desc: " Contract may be not ERC20 compatible, can not get decimals " ) }
@@ -206,7 +206,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
206
206
transaction. callOnBlock = . latest
207
207
updateTransactionAndContract ( from: from)
208
208
// get the decimals manually
209
- let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
209
+ let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
210
210
var decimals = BigUInt ( 0 )
211
211
guard let dec = callResult [ " 0 " ] , let decTyped = dec as? BigUInt else {
212
212
throw Web3Error . inputError ( desc: " Contract may be not ERC20 compatible, can not get decimals " ) }
@@ -224,7 +224,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
224
224
transaction. callOnBlock = . latest
225
225
updateTransactionAndContract ( from: from)
226
226
// get the decimals manually
227
- let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
227
+ let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
228
228
var decimals = BigUInt ( 0 )
229
229
guard let dec = callResult [ " 0 " ] , let decTyped = dec as? BigUInt else {
230
230
throw Web3Error . inputError ( desc: " Contract may be not ERC20 compatible, can not get decimals " ) }
@@ -256,7 +256,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
256
256
transaction. callOnBlock = . latest
257
257
updateTransactionAndContract ( from: from)
258
258
// get the decimals manually
259
- let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
259
+ let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
260
260
var decimals = BigUInt ( 0 )
261
261
guard let dec = callResult [ " 0 " ] , let decTyped = dec as? BigUInt else {
262
262
throw Web3Error . inputError ( desc: " Contract may be not ERC20 compatible, can not get decimals " ) }
@@ -274,7 +274,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
274
274
transaction. callOnBlock = . latest
275
275
updateTransactionAndContract ( from: from)
276
276
// get the decimals manually
277
- let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
277
+ let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
278
278
var decimals = BigUInt ( 0 )
279
279
guard let dec = callResult [ " 0 " ] , let decTyped = dec as? BigUInt else {
280
280
throw Web3Error . inputError ( desc: " Contract may be not ERC20 compatible, can not get decimals " ) }
@@ -306,7 +306,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
306
306
transaction. callOnBlock = . latest
307
307
updateTransactionAndContract ( from: from)
308
308
// get the decimals manually
309
- let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
309
+ let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
310
310
var decimals = BigUInt ( 0 )
311
311
guard let dec = callResult [ " 0 " ] , let decTyped = dec as? BigUInt else {
312
312
throw Web3Error . inputError ( desc: " Contract may be not ERC20 compatible, can not get decimals " ) }
0 commit comments