File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -240,12 +240,8 @@ where
240
240
format ! ( "0x{}" , :: hex:: encode( bytes) )
241
241
}
242
242
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)
249
245
}
250
246
251
247
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
333
333
) -> Result < Option < RuntimeValue > , Trap > {
334
334
let bytes: Vec < u8 > = self . heap . asc_get ( big_int_ptr) ;
335
335
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) ;
337
337
Ok ( Some ( RuntimeValue :: from ( self . heap . asc_new ( & result) ) ) )
338
338
}
339
339
You can’t perform that action at this time.
0 commit comments