From 94a8b0134e784c71e9b286f41aaa900ba7c89d95 Mon Sep 17 00:00:00 2001 From: Jared T Nielsen Date: Tue, 6 Apr 2021 14:08:17 -0700 Subject: [PATCH] Fix example import in README Fix the interface example. 1) '0' should be 0 2) function needs visibility modifier --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 154b43b4..2ccc518d 100644 --- a/README.md +++ b/README.md @@ -53,8 +53,8 @@ import {ILendingPool} from "@aave/protocol-v2/contracts/interfaces/ILendingPool. contract Misc { - function deposit(address pool, address token, address user, uint256 amount) { - ILendingPool(pool).deposit(token, amount, user, '0'); + function deposit(address pool, address token, address user, uint256 amount) public { + ILendingPool(pool).deposit(token, amount, user, 0); {...} } }