@@ -52,11 +52,12 @@ def prepare_transaction_for_new_delegation_contract(self, owner: IAccount, args:
5252 tx .version = int (args .version )
5353 tx .options = int (args .options )
5454 tx .guardian = args .guardian
55- tx .signature = bytes .fromhex (owner .sign_transaction (tx ))
5655
5756 if args .gas_limit :
5857 tx .gas_limit = int (args .gas_limit )
5958
59+ tx .signature = bytes .fromhex (owner .sign_transaction (tx ))
60+
6061 return tx
6162
6263 def prepare_transaction_for_adding_nodes (self , owner : IAccount , args : Any ) -> ITransaction :
@@ -73,11 +74,12 @@ def prepare_transaction_for_adding_nodes(self, owner: IAccount, args: Any) -> IT
7374 tx .version = int (args .version )
7475 tx .options = int (args .options )
7576 tx .guardian = args .guardian
76- tx .signature = bytes .fromhex (owner .sign_transaction (tx ))
7777
7878 if args .gas_limit :
7979 tx .gas_limit = int (args .gas_limit )
8080
81+ tx .signature = bytes .fromhex (owner .sign_transaction (tx ))
82+
8183 return tx
8284
8385 def prepare_transaction_for_removing_nodes (self , owner : IAccount , args : Any ) -> ITransaction :
@@ -94,11 +96,12 @@ def prepare_transaction_for_removing_nodes(self, owner: IAccount, args: Any) ->
9496 tx .version = int (args .version )
9597 tx .options = int (args .options )
9698 tx .guardian = args .guardian
97- tx .signature = bytes .fromhex (owner .sign_transaction (tx ))
9899
99100 if args .gas_limit :
100101 tx .gas_limit = int (args .gas_limit )
101102
103+ tx .signature = bytes .fromhex (owner .sign_transaction (tx ))
104+
102105 return tx
103106
104107 def prepare_transaction_for_staking_nodes (self , owner : IAccount , args : Any ) -> ITransaction :
@@ -115,11 +118,12 @@ def prepare_transaction_for_staking_nodes(self, owner: IAccount, args: Any) -> I
115118 tx .version = int (args .version )
116119 tx .options = int (args .options )
117120 tx .guardian = args .guardian
118- tx .signature = bytes .fromhex (owner .sign_transaction (tx ))
119121
120122 if args .gas_limit :
121123 tx .gas_limit = int (args .gas_limit )
122124
125+ tx .signature = bytes .fromhex (owner .sign_transaction (tx ))
126+
123127 return tx
124128
125129 def prepare_transaction_for_unbonding_nodes (self , owner : IAccount , args : Any ) -> ITransaction :
@@ -136,11 +140,12 @@ def prepare_transaction_for_unbonding_nodes(self, owner: IAccount, args: Any) ->
136140 tx .version = int (args .version )
137141 tx .options = int (args .options )
138142 tx .guardian = args .guardian
139- tx .signature = bytes .fromhex (owner .sign_transaction (tx ))
140143
141144 if args .gas_limit :
142145 tx .gas_limit = int (args .gas_limit )
143146
147+ tx .signature = bytes .fromhex (owner .sign_transaction (tx ))
148+
144149 return tx
145150
146151 def prepare_transaction_for_unstaking_nodes (self , owner : IAccount , args : Any ) -> ITransaction :
@@ -157,11 +162,12 @@ def prepare_transaction_for_unstaking_nodes(self, owner: IAccount, args: Any) ->
157162 tx .version = int (args .version )
158163 tx .options = int (args .options )
159164 tx .guardian = args .guardian
160- tx .signature = bytes .fromhex (owner .sign_transaction (tx ))
161165
162166 if args .gas_limit :
163167 tx .gas_limit = int (args .gas_limit )
164168
169+ tx .signature = bytes .fromhex (owner .sign_transaction (tx ))
170+
165171 return tx
166172
167173 def prepare_transaction_for_unjailing_nodes (self , owner : IAccount , args : Any ) -> ITransaction :
@@ -178,11 +184,12 @@ def prepare_transaction_for_unjailing_nodes(self, owner: IAccount, args: Any) ->
178184 tx .version = int (args .version )
179185 tx .options = int (args .options )
180186 tx .guardian = args .guardian
181- tx .signature = bytes .fromhex (owner .sign_transaction (tx ))
182187
183188 if args .gas_limit :
184189 tx .gas_limit = int (args .gas_limit )
185190
191+ tx .signature = bytes .fromhex (owner .sign_transaction (tx ))
192+
186193 return tx
187194
188195 def prepare_transaction_for_changing_service_fee (self , owner : IAccount , args : Any ) -> ITransaction :
@@ -197,11 +204,12 @@ def prepare_transaction_for_changing_service_fee(self, owner: IAccount, args: An
197204 tx .version = int (args .version )
198205 tx .options = int (args .options )
199206 tx .guardian = args .guardian
200- tx .signature = bytes .fromhex (owner .sign_transaction (tx ))
201207
202208 if args .gas_limit :
203209 tx .gas_limit = int (args .gas_limit )
204210
211+ tx .signature = bytes .fromhex (owner .sign_transaction (tx ))
212+
205213 return tx
206214
207215 def prepare_transaction_for_modifying_delegation_cap (self , owner : IAccount , args : Any ) -> ITransaction :
@@ -216,11 +224,12 @@ def prepare_transaction_for_modifying_delegation_cap(self, owner: IAccount, args
216224 tx .version = int (args .version )
217225 tx .options = int (args .options )
218226 tx .guardian = args .guardian
219- tx .signature = bytes .fromhex (owner .sign_transaction (tx ))
220227
221228 if args .gas_limit :
222229 tx .gas_limit = int (args .gas_limit )
223230
231+ tx .signature = bytes .fromhex (owner .sign_transaction (tx ))
232+
224233 return tx
225234
226235 def prepare_transaction_for_automatic_activation (self , owner : IAccount , args : Any ) -> ITransaction :
@@ -243,11 +252,12 @@ def prepare_transaction_for_automatic_activation(self, owner: IAccount, args: An
243252 tx .version = int (args .version )
244253 tx .options = int (args .options )
245254 tx .guardian = args .guardian
246- tx .signature = bytes .fromhex (owner .sign_transaction (tx ))
247255
248256 if args .gas_limit :
249257 tx .gas_limit = int (args .gas_limit )
250258
259+ tx .signature = bytes .fromhex (owner .sign_transaction (tx ))
260+
251261 return tx
252262
253263 def prepare_transaction_for_redelegate_cap (self , owner : IAccount , args : Any ) -> ITransaction :
@@ -270,11 +280,12 @@ def prepare_transaction_for_redelegate_cap(self, owner: IAccount, args: Any) ->
270280 tx .version = int (args .version )
271281 tx .options = int (args .options )
272282 tx .guardian = args .guardian
273- tx .signature = bytes .fromhex (owner .sign_transaction (tx ))
274283
275284 if args .gas_limit :
276285 tx .gas_limit = int (args .gas_limit )
277286
287+ tx .signature = bytes .fromhex (owner .sign_transaction (tx ))
288+
278289 return tx
279290
280291 def prepare_transaction_for_setting_metadata (self , owner : IAccount , args : Any ) -> ITransaction :
@@ -291,11 +302,12 @@ def prepare_transaction_for_setting_metadata(self, owner: IAccount, args: Any) -
291302 tx .version = int (args .version )
292303 tx .options = int (args .options )
293304 tx .guardian = args .guardian
294- tx .signature = bytes .fromhex (owner .sign_transaction (tx ))
295305
296306 if args .gas_limit :
297307 tx .gas_limit = int (args .gas_limit )
298308
309+ tx .signature = bytes .fromhex (owner .sign_transaction (tx ))
310+
299311 return tx
300312
301313 def _load_validators_public_keys (self , args : Any ) -> List [ValidatorPublicKey ]:
0 commit comments