Skip to content

Commit

Permalink
- Fixed stream data resolution function
Browse files Browse the repository at this point in the history
  • Loading branch information
supriyaamisshra committed Mar 1, 2022
1 parent 65d4ef2 commit fdd05c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/react-app/src/contracts/hardhat_contracts.json
Original file line number Diff line number Diff line change
Expand Up @@ -1244,4 +1244,4 @@
}
}
}
}
}
4 changes: 2 additions & 2 deletions packages/react-app/src/views/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { Link } from "react-router-dom";

const streamsCache = {};

async function resolveStreamSummary(streamAddress) {
async function resolveStreamSummary(streamAddress, mainnetProvider) {
if (streamsCache[streamAddress]) {
return streamsCache[streamAddress];
}
Expand Down Expand Up @@ -75,7 +75,7 @@ export default function Home({
useEffect(async () => {
// Get an instance for each Stream contract
for (let b in streams) {
const summary = resolveStreamSummary(streams[b].stream);
const summary = resolveStreamSummary(streams[b].stream, mainnetProvider);
copy[b].push(summary.cap);
copy[b].percent = summary.percent;
}
Expand Down

0 comments on commit fdd05c9

Please sign in to comment.