Skip to content

Commit

Permalink
fix shadow variable
Browse files Browse the repository at this point in the history
  • Loading branch information
seunlanlege committed Sep 14, 2024
1 parent 893c14c commit 3c15d21
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions interfaces/IIsmpModule.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>",
"license": "Apache-2.0",
Expand Down Expand Up @@ -33,4 +33,4 @@
"prettier": "^3.3.3",
"prettier-plugin-solidity": "^1.3.1"
}
}
}

0 comments on commit 3c15d21

Please sign in to comment.