File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -240,12 +240,8 @@ where
240240 format ! ( "0x{}" , :: hex:: encode( bytes) )
241241 }
242242
243- pub ( crate ) fn big_int_to_string (
244- & self ,
245- n : BigInt ,
246- ) -> Result < String , HostExportError < impl ExportError > > {
247- let bytes = n. to_bytes_le ( ) . 1 ;
248- self . bytes_to_string ( bytes)
243+ pub ( crate ) fn big_int_to_string ( & self , n : BigInt ) -> String {
244+ format ! ( "{}" , n)
249245 }
250246
251247 pub ( crate ) fn big_int_to_hex ( & self , n : BigInt ) -> String {
Original file line number Diff line number Diff line change @@ -333,7 +333,7 @@ where
333333 ) -> Result < Option < RuntimeValue > , Trap > {
334334 let bytes: Vec < u8 > = self . heap . asc_get ( big_int_ptr) ;
335335 let n = BigInt :: from_signed_bytes_le ( & * bytes) ;
336- let result = self . host_exports . big_int_to_string ( n) ? ;
336+ let result = self . host_exports . big_int_to_string ( n) ;
337337 Ok ( Some ( RuntimeValue :: from ( self . heap . asc_new ( & result) ) ) )
338338 }
339339
You can’t perform that action at this time.
0 commit comments