From 18ce2b363747f31c85684cd6f7ce997ed80bda0e Mon Sep 17 00:00:00 2001 From: eboado Date: Mon, 30 Nov 2020 09:23:31 +0100 Subject: [PATCH] - Added `view` to getMarketId() --- contracts/interfaces/ILendingPoolAddressesProvider.sol | 2 +- .../protocol/configuration/LendingPoolAddressesProvider.sol | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/interfaces/ILendingPoolAddressesProvider.sol b/contracts/interfaces/ILendingPoolAddressesProvider.sol index cec353d0..2eb16dcc 100644 --- a/contracts/interfaces/ILendingPoolAddressesProvider.sol +++ b/contracts/interfaces/ILendingPoolAddressesProvider.sol @@ -20,7 +20,7 @@ interface ILendingPoolAddressesProvider { event ProxyCreated(bytes32 id, address indexed newAddress); event AddressSet(bytes32 id, address indexed newAddress, bool hasProxy); - function getMarketId() external returns (string memory); + function getMarketId() external view returns (string memory); function setMarketId(string calldata marketId) external; diff --git a/contracts/protocol/configuration/LendingPoolAddressesProvider.sol b/contracts/protocol/configuration/LendingPoolAddressesProvider.sol index 9a6fb255..37b2ed8e 100644 --- a/contracts/protocol/configuration/LendingPoolAddressesProvider.sol +++ b/contracts/protocol/configuration/LendingPoolAddressesProvider.sol @@ -36,7 +36,7 @@ contract LendingPoolAddressesProvider is Ownable, ILendingPoolAddressesProvider * @dev Returns the id of the Aave market to which this contracts points to * @return The market id **/ - function getMarketId() external override returns (string memory) { + function getMarketId() external view override returns (string memory) { return _marketId; }