From 3c15d21bb9e13d315bbdc8f5abefa1caf430fb0d Mon Sep 17 00:00:00 2001 From: Seun Lanlege Date: Sat, 14 Sep 2024 13:46:48 +0000 Subject: [PATCH] fix shadow variable --- interfaces/IIsmpModule.sol | 6 +++--- package.json | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/interfaces/IIsmpModule.sol b/interfaces/IIsmpModule.sol index e6018eb..e94ab1d 100644 --- a/interfaces/IIsmpModule.sol +++ b/interfaces/IIsmpModule.sol @@ -82,10 +82,10 @@ abstract contract BaseIsmpModule is IIsmpModule { } constructor() { - address host = host(); - if (host != address(0)) { + address hostAddr = host(); + if (hostAddr != address(0)) { // approve the host infintely - IERC20(IIsmpHost(host).feeToken()).approve(host, type(uint256).max); + IERC20(IIsmpHost(hostAddr).feeToken()).approve(hostAddr, type(uint256).max); } } diff --git a/package.json b/package.json index 78a6a2f..ed2d28b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@polytope-labs/ismp-solidity", - "version": "0.6.8", + "version": "0.6.9", "description": "Hyperbridge Solidity SDK for the Interoperable state machine protocol", "author": "Polytope Labs ", "license": "Apache-2.0", @@ -33,4 +33,4 @@ "prettier": "^3.3.3", "prettier-plugin-solidity": "^1.3.1" } -} +} \ No newline at end of file