Skip to content

Commit

Permalink
chore: fix build warning
Browse files Browse the repository at this point in the history
Signed-off-by: Jawad Tariq <[email protected]>
  • Loading branch information
JDawg287 committed Feb 20, 2024
1 parent a6a8051 commit 77be22f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/topos-core/CodeHash.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ pragma solidity ^0.8.9;
contract CodeHash {
/// @notice gets the codehash of a contract address
/// @param contractAddr a contract address
function getCodeHash(address contractAddr) public view returns (bytes32) {
function getCodeHash(address contractAddr) public view returns (bytes32 codeHash) {
// does not fail with wallet addresses
if (contractAddr.codehash.length != 0) {
return contractAddr.codehash;
codeHash = contractAddr.codehash;
}
}
}

0 comments on commit 77be22f

Please sign in to comment.