@@ -106,7 +106,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
106106 transaction. callOnBlock = . latest
107107 updateTransactionAndContract ( from: from)
108108 // get the decimals manually
109- let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
109+ let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
110110 var decimals = BigUInt ( 0 )
111111 guard let dec = callResult [ " 0 " ] , let decTyped = dec as? BigUInt else {
112112 throw Web3Error . inputError ( desc: " Contract may be not ERC20 compatible, can not get decimals " ) }
@@ -124,7 +124,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
124124 transaction. callOnBlock = . latest
125125 updateTransactionAndContract ( from: from)
126126 // get the decimals manually
127- let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
127+ let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
128128 var decimals = BigUInt ( 0 )
129129 guard let dec = callResult [ " 0 " ] , let decTyped = dec as? BigUInt else {
130130 throw Web3Error . inputError ( desc: " Contract may be not ERC20 compatible, can not get decimals " ) }
@@ -142,7 +142,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
142142 transaction. callOnBlock = . latest
143143 updateTransactionAndContract ( from: from)
144144 // get the decimals manually
145- let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
145+ let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
146146 var decimals = BigUInt ( 0 )
147147 guard let dec = callResult [ " 0 " ] , let decTyped = dec as? BigUInt else {
148148 throw Web3Error . inputError ( desc: " Contract may be not ERC20 compatible, can not get decimals " ) }
@@ -160,7 +160,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
160160 transaction. callOnBlock = . latest
161161 updateTransactionAndContract ( from: from)
162162 // get the decimals manually
163- let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
163+ let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
164164 var decimals = BigUInt ( 0 )
165165 guard let dec = callResult [ " 0 " ] , let decTyped = dec as? BigUInt else {
166166 throw Web3Error . inputError ( desc: " Contract may be not ERC20 compatible, can not get decimals " ) }
@@ -185,7 +185,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
185185 transaction. callOnBlock = . latest
186186 updateTransactionAndContract ( from: from)
187187 // get the decimals manually
188- let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
188+ let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
189189 var decimals = BigUInt ( 0 )
190190 guard let dec = callResult [ " 0 " ] , let decTyped = dec as? BigUInt else {
191191 throw Web3Error . inputError ( desc: " Contract may be not ERC20 compatible, can not get decimals " ) }
@@ -206,7 +206,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
206206 transaction. callOnBlock = . latest
207207 updateTransactionAndContract ( from: from)
208208 // get the decimals manually
209- let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
209+ let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
210210 var decimals = BigUInt ( 0 )
211211 guard let dec = callResult [ " 0 " ] , let decTyped = dec as? BigUInt else {
212212 throw Web3Error . inputError ( desc: " Contract may be not ERC20 compatible, can not get decimals " ) }
@@ -224,7 +224,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
224224 transaction. callOnBlock = . latest
225225 updateTransactionAndContract ( from: from)
226226 // get the decimals manually
227- let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
227+ let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
228228 var decimals = BigUInt ( 0 )
229229 guard let dec = callResult [ " 0 " ] , let decTyped = dec as? BigUInt else {
230230 throw Web3Error . inputError ( desc: " Contract may be not ERC20 compatible, can not get decimals " ) }
@@ -256,7 +256,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
256256 transaction. callOnBlock = . latest
257257 updateTransactionAndContract ( from: from)
258258 // get the decimals manually
259- let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
259+ let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
260260 var decimals = BigUInt ( 0 )
261261 guard let dec = callResult [ " 0 " ] , let decTyped = dec as? BigUInt else {
262262 throw Web3Error . inputError ( desc: " Contract may be not ERC20 compatible, can not get decimals " ) }
@@ -274,7 +274,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
274274 transaction. callOnBlock = . latest
275275 updateTransactionAndContract ( from: from)
276276 // get the decimals manually
277- let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
277+ let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
278278 var decimals = BigUInt ( 0 )
279279 guard let dec = callResult [ " 0 " ] , let decTyped = dec as? BigUInt else {
280280 throw Web3Error . inputError ( desc: " Contract may be not ERC20 compatible, can not get decimals " ) }
@@ -306,7 +306,7 @@ public class ERC1376: IERC1376, ERC20BaseProperties {
306306 transaction. callOnBlock = . latest
307307 updateTransactionAndContract ( from: from)
308308 // get the decimals manually
309- let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
309+ let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
310310 var decimals = BigUInt ( 0 )
311311 guard let dec = callResult [ " 0 " ] , let decTyped = dec as? BigUInt else {
312312 throw Web3Error . inputError ( desc: " Contract may be not ERC20 compatible, can not get decimals " ) }
0 commit comments