Skip to content

Commit

Permalink
Update error.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rouzwelt committed Jun 22, 2024
1 parent 2b3da8c commit d37413a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down

0 comments on commit d37413a

Please sign in to comment.