mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Fix example import in README
Fix the interface example. 1) '0' should be 0 2) function needs visibility modifier
This commit is contained in:
parent
77acec9395
commit
94a8b0134e
|
@ -53,8 +53,8 @@ import {ILendingPool} from "@aave/protocol-v2/contracts/interfaces/ILendingPool.
|
||||||
|
|
||||||
contract Misc {
|
contract Misc {
|
||||||
|
|
||||||
function deposit(address pool, address token, address user, uint256 amount) {
|
function deposit(address pool, address token, address user, uint256 amount) public {
|
||||||
ILendingPool(pool).deposit(token, amount, user, '0');
|
ILendingPool(pool).deposit(token, amount, user, 0);
|
||||||
{...}
|
{...}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user