@@ -13,8 +13,9 @@ use crate::call_args::{
1313 VoteUpdateArgs ,
1414} ;
1515use crate :: deposits:: {
16- DepositOverflowError , SIGN_DEPOSIT_YOCTONEAR , STORAGE_BYTE_COST_YOCTONEAR ,
17- SUBMIT_PARTICIPANT_INFO_DEPOSIT_MILLINEAR , propose_update_required_deposit_yoctonear,
16+ self , DepositOverflowError , MINIMUM_NODE_MANAGEMENT_DEPOSIT_YOCTONEAR , SIGN_DEPOSIT_YOCTONEAR ,
17+ STORAGE_BYTE_COST_YOCTONEAR , SUBMIT_PARTICIPANT_INFO_DEPOSIT_MILLINEAR ,
18+ propose_update_required_deposit_yoctonear,
1819} ;
1920use crate :: method_names:: {
2021 PROPOSE_UPDATE , REGISTER_BACKUP_SERVICE , REGISTER_FOREIGN_CHAIN_SUPPORT ,
@@ -207,10 +208,11 @@ impl<C: CallContract> MpcContractHandle<C> {
207208 backup_service_info : BackupServiceInfo ,
208209 ) -> Result < C :: Output , MpcContractHandleError < C :: Error > > {
209210 let args = serde_json:: to_vec ( & RegisterBackupServiceArgs :: new ( backup_service_info) ) ?;
210- self . call ( FunctionCallArgs :: no_deposit (
211+ self . call ( FunctionCallArgs :: new (
211212 REGISTER_BACKUP_SERVICE ,
212213 args,
213214 MAX_GAS ,
215+ NearToken :: from_yoctonear ( MINIMUM_NODE_MANAGEMENT_DEPOSIT_YOCTONEAR ) ,
214216 ) )
215217 . await
216218 }
@@ -220,10 +222,11 @@ impl<C: CallContract> MpcContractHandle<C> {
220222 destination_node_info : DestinationNodeInfo ,
221223 ) -> Result < C :: Output , MpcContractHandleError < C :: Error > > {
222224 let args = serde_json:: to_vec ( & StartNodeMigrationArgs :: new ( destination_node_info) ) ?;
223- self . call ( FunctionCallArgs :: no_deposit (
225+ self . call ( FunctionCallArgs :: new (
224226 START_NODE_MIGRATION ,
225227 args,
226228 MAX_GAS ,
229+ NearToken :: from_yoctonear ( MINIMUM_NODE_MANAGEMENT_DEPOSIT_YOCTONEAR ) ,
227230 ) )
228231 . await
229232 }
0 commit comments