Skip to content

Commit

Permalink
Use contains_key instead of is_some
Browse files Browse the repository at this point in the history
Co-authored-by: Xiliang Chen <[email protected]>
  • Loading branch information
sorpaas and xlc authored Oct 1, 2023
1 parent 3db6475 commit f4c6bbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frame/evm/src/runner/stack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ where
}

fn storage(&self, address: H160, index: H256) -> H256 {
if <Suicided<T>>::get(&address).is_some() {
if <Suicided<T>>::contains_key(&address)) {
return H256::default();
}

Expand Down

0 comments on commit f4c6bbb

Please sign in to comment.