@@ -36,7 +36,7 @@ struct DebotEntry {
3636
3737/// Top level object. Created only once.
3838pub struct TerminalBrowser {
39- /// Instance of SDK client.
39+ /// Instance of SDK client.
4040 pub client : TonClient ,
4141 /// User Information used by UserInfo interface
4242 pub user_settings : SharedUserSettings ,
@@ -51,7 +51,7 @@ pub struct TerminalBrowser {
5151 callbacks : Arc < Callbacks > ,
5252 /// Set of intrefaces implemented by current DBrowser.
5353 interfaces : SupportedInterfaces ,
54- /// Input chain Processor for Debot Manifest
54+ /// Input chain Processor for Debot Manifest
5555 processor : Arc < tokio:: sync:: RwLock < ChainProcessor > > ,
5656 /// Indicates if Browser will interact with the user or not.
5757 interactive : bool ,
@@ -66,7 +66,7 @@ impl TerminalBrowser {
6666 addr : String ,
6767 ) -> Result < Self , String > {
6868 let processor = Arc :: new ( tokio:: sync:: RwLock :: new ( ChainProcessor :: new ( ) ) ) ;
69-
69+
7070 let callbacks = Arc :: new (
7171 Callbacks :: new (
7272 client. clone ( ) ,
@@ -77,14 +77,14 @@ impl TerminalBrowser {
7777 let user_settings = make_shared_settings ( user_settings) ;
7878
7979 let interfaces = SupportedInterfaces :: new (
80- client. clone ( ) ,
80+ client. clone ( ) ,
8181 user_settings. clone ( ) ,
8282 processor. clone ( ) ,
8383 ) ;
8484
8585 // TODO remove clone
8686 let main_debot_addr = addr. clone ( ) ;
87-
87+
8888 let mut browser = Self {
8989 client,
9090 user_settings,
@@ -121,7 +121,7 @@ impl TerminalBrowser {
121121 let abi_version = info. dabi_version . clone ( ) ;
122122 let abi_ref = info. dabi . as_ref ( ) ;
123123 let abi = load_abi ( & abi_ref. ok_or ( format ! ( "DeBot ABI is not defined" ) ) ?) ?;
124-
124+
125125 if call_start {
126126 let mut run_debot = autorun;
127127 if !autorun {
@@ -233,7 +233,7 @@ impl TerminalBrowser {
233233
234234 if wc == DEBOT_WC {
235235 if id == BROWSER_ID {
236- info ! ( "Message from DeBot to Browser" ) ;
236+ info ! ( "Message from DeBot to Browser" ) ;
237237 self . set_exit_arg ( msg, msg_src) . await ?;
238238 } else {
239239 self . call_interface ( msg, & id, msg_src) . await ?;
@@ -251,13 +251,13 @@ impl TerminalBrowser {
251251 let ( start, call_set, mut init_message) = {
252252 let mut processor = self . processor . write ( ) . await ;
253253 processor. load_manifest ( manifest) ;
254- (
254+ (
255255 processor. default_start ( ) ,
256256 processor. initial_call_set ( ) ,
257257 processor. initial_msg ( )
258258 )
259259 } ;
260-
260+
261261 self . exit_arg = None ;
262262
263263 let abi = self . bots . get ( & self . main_debot_addr )
@@ -297,7 +297,7 @@ impl TerminalBrowser {
297297 println ! ( "DeBot Info:" ) ;
298298 fn print < ' a > ( field : & ' a Option < String > ) -> & ' a str {
299299 field. as_ref ( ) . map ( |v| v. as_str ( ) ) . unwrap_or ( "None" )
300- }
300+ }
301301 println ! ( "Name : {}" , print( & info. name) ) ;
302302 println ! ( "Version: {}" , print( & info. version) ) ;
303303 println ! ( "Author : {}" , print( & info. author) ) ;
@@ -312,7 +312,7 @@ impl TerminalBrowser {
312312 let arg = if let Some ( abi) = abi {
313313 let decoded = decode_message (
314314 self . client . clone ( ) ,
315- ParamsOfDecodeMessage { abi, message } ,
315+ ParamsOfDecodeMessage { abi, message, allow_partial : false , function_name : None , data_layout : None } ,
316316 ) . await . map_err ( |e| format ! ( "{}" , e) ) ?;
317317 decoded. value . unwrap_or ( json ! ( { } ) )
318318 } else {
0 commit comments