diff --git a/examples/smart-contracts/LiquidityExamples.sol b/examples/smart-contracts/LiquidityExamples.sol index a722e33961..bc5caa6d07 100644 --- a/examples/smart-contracts/LiquidityExamples.sol +++ b/examples/smart-contracts/LiquidityExamples.sol @@ -39,7 +39,7 @@ contract LiquidityExamples is IERC721Receiver { function _createDeposit(address owner, uint256 tokenId) internal { (, , address token0, address token1, , , , uint128 liquidity, , , , ) = - nonfungiblePositionManager.positions(tokenId); + INonfungiblePositionManager(nonfungiblePositionManager).positions(tokenId); // set the owner and data for position deposits[tokenId] = Deposit({owner: owner, liquidity: liquidity, token0: token0, token1: token1}); } @@ -240,4 +240,4 @@ contract LiquidityExamples is IERC721Receiver { // transfer ownership to original owner nonfungiblePositionManager.safeTransferFrom(address(this), msg.sender, tokenId); } -} \ No newline at end of file +}