From cc6eb7e83192cc55f29204ac8a6344ec88dcdcba Mon Sep 17 00:00:00 2001 From: Daksh Miglani Date: Wed, 26 May 2021 21:15:20 +0530 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20use=20callStatic=20in=20c?= =?UTF-8?q?ompound=20getPosition?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/aggregate-resolvers.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/aggregate-resolvers.js b/test/aggregate-resolvers.js index cac22a3..496f293 100644 --- a/test/aggregate-resolvers.js +++ b/test/aggregate-resolvers.js @@ -23,8 +23,9 @@ describe("Resolver getPosition", function () { it("should get position for compound", async function () { const account = "0x005280119e7070fd1999703ec606c5e97b146e84"; - const tx = compound.getPosition(account); - expect(tx).to.satisfy; + const res = await compound.callStatic.getPosition(account); + console.log(res.toString()); + expect(res).gt(0); }); it("should get position for aaveV2", async function () {