@@ -100,7 +100,7 @@ public class SecurityToken: ISecurityToken, ERC20BaseProperties {
100
100
transaction. from = from
101
101
transaction. to = self . address
102
102
transaction. callOnBlock = . latest
103
-
103
+ contract . transaction = transaction
104
104
// get the decimals manually
105
105
let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
106
106
var decimals = BigUInt ( 0 )
@@ -119,7 +119,7 @@ public class SecurityToken: ISecurityToken, ERC20BaseProperties {
119
119
transaction. from = from
120
120
transaction. to = self . address
121
121
transaction. callOnBlock = . latest
122
-
122
+ contract . transaction = transaction
123
123
// get the decimals manually
124
124
let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
125
125
var decimals = BigUInt ( 0 )
@@ -138,7 +138,7 @@ public class SecurityToken: ISecurityToken, ERC20BaseProperties {
138
138
transaction. from = from
139
139
transaction. to = self . address
140
140
transaction. callOnBlock = . latest
141
-
141
+ contract . transaction = transaction
142
142
// get the decimals manually
143
143
let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
144
144
var decimals = BigUInt ( 0 )
@@ -171,7 +171,7 @@ public class SecurityToken: ISecurityToken, ERC20BaseProperties {
171
171
transaction. from = from
172
172
transaction. to = self . address
173
173
transaction. callOnBlock = . latest
174
-
174
+ contract . transaction = transaction
175
175
// get the decimals manually
176
176
let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
177
177
var decimals = BigUInt ( 0 )
@@ -190,7 +190,7 @@ public class SecurityToken: ISecurityToken, ERC20BaseProperties {
190
190
transaction. from = from
191
191
transaction. to = self . address
192
192
transaction. callOnBlock = . latest
193
-
193
+ contract . transaction = transaction
194
194
// get the decimals manually
195
195
let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
196
196
var decimals = BigUInt ( 0 )
@@ -209,7 +209,7 @@ public class SecurityToken: ISecurityToken, ERC20BaseProperties {
209
209
transaction. from = from
210
210
transaction. to = self . address
211
211
transaction. callOnBlock = . latest
212
-
212
+ contract . transaction = transaction
213
213
// get the decimals manually
214
214
let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
215
215
var decimals = BigUInt ( 0 )
@@ -228,7 +228,7 @@ public class SecurityToken: ISecurityToken, ERC20BaseProperties {
228
228
transaction. from = from
229
229
transaction. to = self . address
230
230
transaction. callOnBlock = . latest
231
-
231
+ contract . transaction = transaction
232
232
// get the decimals manually
233
233
let callResult = try await contract. createReadOperation ( " decimals " ) !. callContractMethod ( )
234
234
var decimals = BigUInt ( 0 )
@@ -254,13 +254,15 @@ public class SecurityToken: ISecurityToken, ERC20BaseProperties {
254
254
transaction. from = from
255
255
transaction. to = self . address
256
256
transaction. callOnBlock = . latest
257
+ contract. transaction = transaction
257
258
return contract. createWriteOperation ( " renounceOwnership " , parameters: [ AnyObject] ( ) ) !
258
259
}
259
260
260
261
public func transferOwnership( from: EthereumAddress , newOwner: EthereumAddress ) throws -> WriteOperation {
261
262
transaction. from = from
262
263
transaction. to = self . address
263
264
transaction. callOnBlock = . latest
265
+ contract. transaction = transaction
264
266
return contract. createWriteOperation ( " transferOwnership " , parameters: [ newOwner] as [ AnyObject ] ) !
265
267
}
266
268
@@ -333,6 +335,7 @@ public class SecurityToken: ISecurityToken, ERC20BaseProperties {
333
335
transaction. from = from
334
336
transaction. to = self . address
335
337
transaction. callOnBlock = . latest
338
+ contract. transaction = transaction
336
339
return contract. createWriteOperation ( " createCheckpoint " , parameters: [ AnyObject] ( ) ) !
337
340
}
338
341
0 commit comments