From 77be22f3831c8deb2eab5f28d12951f1e1b74982 Mon Sep 17 00:00:00 2001 From: Jawad Tariq Date: Mon, 19 Feb 2024 12:12:42 -0500 Subject: [PATCH] chore: fix build warning Signed-off-by: Jawad Tariq --- contracts/topos-core/CodeHash.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/topos-core/CodeHash.sol b/contracts/topos-core/CodeHash.sol index da20dd9..4b7d7aa 100644 --- a/contracts/topos-core/CodeHash.sol +++ b/contracts/topos-core/CodeHash.sol @@ -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; } } }