From bf1571a2f65efd468d6d66a5afd1db0086301c46 Mon Sep 17 00:00:00 2001 From: SissonJ Date: Wed, 18 Sep 2024 10:48:45 -0500 Subject: [PATCH] chore: patch parsing --- .changeset/giant-toys-guess.md | 5 +++++ src/contracts/services/moneyMarket.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/giant-toys-guess.md diff --git a/.changeset/giant-toys-guess.md b/.changeset/giant-toys-guess.md new file mode 100644 index 0000000..34a5be7 --- /dev/null +++ b/.changeset/giant-toys-guess.md @@ -0,0 +1,5 @@ +--- +"@shadeprotocol/shadejs": patch +--- + +patched a parsing bug where contract address was being used for code hash diff --git a/src/contracts/services/moneyMarket.ts b/src/contracts/services/moneyMarket.ts index e30bc4c..06c7dd2 100644 --- a/src/contracts/services/moneyMarket.ts +++ b/src/contracts/services/moneyMarket.ts @@ -42,7 +42,7 @@ const parseMoneyMarketGetMarkets = ( }, lToken: { contractAddress: cur.l_token.address, - codeHash: cur.l_token.address, + codeHash: cur.l_token.code_hash, }, decimals: cur.decimals, oracleKey: cur.oracle_key,