Fix example import in README

Fix the interface example.
1) '0' should be 0
2) function needs visibility modifier
This commit is contained in:
Jared T Nielsen 2021-04-06 14:08:17 -07:00 committed by GitHub
parent 77acec9395
commit 94a8b0134e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
{...}
}
}