Skip to content

Commit

Permalink
Merge pull request #1892 from daog1/fix_abidecode
Browse files Browse the repository at this point in the history
fix abi decode
  • Loading branch information
0xalpharush authored May 5, 2023
2 parents c75deea + 2002312 commit 507795b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slither/tools/read_storage/read_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ def _find_mapping_slot(
if "int" in key_type: # without this eth_utils encoding fails
key = int(key)
key = coerce_type(key_type, key)
slot = keccak(encode([key_type, "uint256"], [key, decode("uint256", slot)]))
slot = keccak(encode([key_type, "uint256"], [key, decode(["uint256"], slot)[0]]))

if isinstance(target_variable_type.type_to, UserDefinedType) and isinstance(
target_variable_type.type_to.type, Structure
Expand Down

0 comments on commit 507795b

Please sign in to comment.