@@ -39,13 +39,13 @@ mod integration_tests {
39
39
}
40
40
41
41
#[ tokio:: test]
42
- async fn test_decompile_u256_conversion_overflow_1 ( ) {
42
+ async fn test_decompile_edge_case_u256_conversion_overflow_1 ( ) {
43
43
let rpc_url = std:: env:: var ( "RPC_URL" ) . unwrap_or_else ( |_| {
44
44
println ! ( "RPC_URL not set, skipping test" ) ;
45
45
std:: process:: exit ( 0 ) ;
46
46
} ) ;
47
47
48
- let result = decompile ( DecompilerArgs {
48
+ let _ = decompile ( DecompilerArgs {
49
49
target : String :: from ( "0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7" ) ,
50
50
rpc_url,
51
51
default : true ,
@@ -64,13 +64,13 @@ mod integration_tests {
64
64
}
65
65
66
66
#[ tokio:: test]
67
- async fn test_decompile_u256_conversion_overflow_2 ( ) {
67
+ async fn test_decompile_edge_case_u256_conversion_overflow_2 ( ) {
68
68
let rpc_url = std:: env:: var ( "RPC_URL" ) . unwrap_or_else ( |_| {
69
69
println ! ( "RPC_URL not set, skipping test" ) ;
70
70
std:: process:: exit ( 0 ) ;
71
71
} ) ;
72
72
73
- let result = decompile ( DecompilerArgs {
73
+ let _ = decompile ( DecompilerArgs {
74
74
target : String :: from ( "0x5141b82f5ffda4c6fe1e372978f1c5427640a190" ) ,
75
75
rpc_url,
76
76
default : true ,
@@ -88,6 +88,31 @@ mod integration_tests {
88
88
. expect ( "failed to decompile" ) ;
89
89
}
90
90
91
+ #[ tokio:: test]
92
+ async fn test_decompile_edge_case_vec_overflow ( ) {
93
+ let rpc_url = std:: env:: var ( "RPC_URL" ) . unwrap_or_else ( |_| {
94
+ println ! ( "RPC_URL not set, skipping test" ) ;
95
+ std:: process:: exit ( 0 ) ;
96
+ } ) ;
97
+
98
+ let _ = decompile ( DecompilerArgs {
99
+ target : String :: from ( "0x8579970692bf77fafeeb017f07dec9a8fdb4893d" ) ,
100
+ rpc_url,
101
+ default : true ,
102
+ skip_resolving : true ,
103
+ include_solidity : true ,
104
+ include_yul : false ,
105
+ output : String :: from ( "" ) ,
106
+ name : String :: from ( "" ) ,
107
+ timeout : 10000 ,
108
+ abi : None ,
109
+ openai_api_key : String :: from ( "" ) ,
110
+ llm_postprocess : false ,
111
+ } )
112
+ . await
113
+ . expect ( "failed to decompile" ) ;
114
+ }
115
+
91
116
#[ tokio:: test]
92
117
async fn test_decompile_weth ( ) {
93
118
let rpc_url = std:: env:: var ( "RPC_URL" ) . unwrap_or_else ( |_| {
0 commit comments