From d37413a934edd0975fb7e0358a527c2501ced4cc Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Sat, 22 Jun 2024 02:52:09 +0000 Subject: [PATCH] Update error.rs --- src/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/error.rs b/src/error.rs index c9a4ccd..4fe2526 100644 --- a/src/error.rs +++ b/src/error.rs @@ -143,7 +143,7 @@ impl AbiDecodedErrorType { let arg = U256::try_from_be_slice(data).unwrap(); let reason = match arg { v if v == U256::from(0x00) => "generic compiler inserted panics, (code: 0x00)", - v if v == U256::from(0x01) => "assert with an argument that evaluates to false (code: 0x01)", + v if v == U256::from(0x01) => "assert with an argument that evaluates to false, (code: 0x01)", v if v == U256::from(0x11) => "an arithmetic operation resulted in underflow or overflow outside of an unchecked { ... } block, (code: 0x11)", v if v == U256::from(0x12) => "divide or modulo by zero (e.g. 5 / 0 or 23 % 0), (code: 0x12)", v if v == U256::from(0x21) => "convert a value that is too big or negative into an enum type, (code: 0x21)",