From a6b326be90842905a3847c2f22d22d2bc9632212 Mon Sep 17 00:00:00 2001 From: Sowmayjain Date: Wed, 28 Nov 2018 03:32:53 +0530 Subject: [PATCH] Returning bytes32 of CDP with getCDPID. --- contracts/protocols/InstaMaker.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/protocols/InstaMaker.sol b/contracts/protocols/InstaMaker.sol index e7513b2..779bd67 100644 --- a/contracts/protocols/InstaMaker.sol +++ b/contracts/protocols/InstaMaker.sol @@ -237,8 +237,8 @@ contract BorrowTasks is RepayLoan { return uint(ethrate).div(10**18); } - function getCDPID(address borrower) public view returns (uint) { - return uint(cdps[borrower]); + function getCDPID(address borrower) public view returns (uint, bytes32) { + return (uint(cdps[borrower]), cdps[borrower]); } function approveERC20() public {