Skip to content

Commit dd5c9c2

Browse files
chore: refactor code
1 parent e17b0cd commit dd5c9c2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

script/libraries/LibInitializeGuard.sol

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,10 +327,8 @@ library LibInitializeGuard {
327327
function _getContractAbsolutePath(uint256 forkId, address addr) private view returns (string memory contractName) {
328328
TNetwork networkType = vme.getNetworkTypeByForkId(forkId);
329329
TContract contractType = vme.getContractTypeByRawData(networkType, addr);
330-
string memory contractTypeName = vme.getContractName(contractType);
331330
string memory contractNameMap = _getContractNameFromAbsolutePath(vme.getContractAbsolutePath(contractType));
332-
contractName =
333-
(keccak256(bytes(contractNameMap)) == keccak256(bytes(contractTypeName))) ? contractTypeName : contractNameMap;
331+
contractName = contractNameMap;
334332
}
335333

336334
function _getContractNameFromAbsolutePath(string memory path) internal pure returns (string memory contractName) {

0 commit comments

Comments
 (0)