Skip to content

Commit

Permalink
update redemption
Browse files Browse the repository at this point in the history
  • Loading branch information
brockelmore authored and ethedev committed Feb 7, 2023
1 parent 6a64253 commit a32423c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@
"styled-components": "^5.2.0",
"use-wallet": "^0.13.6",
"web3": "1.2.11",
"yam-sdk": "^0.0.16-alpha"
"yam-sdk": "^0.0.16-alpha",
"yam-sdk-dev": "^0.0.18-alpha"
},
"devDependencies": {
"@types/react-router-dom": "^5.1.5",
Expand Down
3 changes: 1 addition & 2 deletions src/hooks/useSDK.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ProposalVotingPower } from "contexts/Governance/types";
import { ethers } from "ethers";
import { useCallback, useEffect, useState } from "react";
import { useWallet } from "use-wallet";
import Yam from "yam-sdk-files/dist";
import { Yam } from "yam-sdk-dev";

const useSDK = () => {
const { ethereum } = useWallet();
Expand All @@ -26,7 +26,6 @@ const useSDK = () => {
const yamContract = await yamSDK.contracts.token;
const govContract = await yamSDK.contracts.governor;
const redeemerContract = await yamSDK.contracts.redeemer;
console.log("setting yam contract and redeemer", yamContract, redeemerContract);
setYamSDK(yamSDK);
setYamContract(yamContract);
setGovContract(govContract);
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -17640,6 +17640,11 @@ yallist@^4.0.0:
resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72"
integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==

yam-sdk-dev@^0.0.18-alpha:
version "0.0.18-alpha"
resolved "https://registry.yarnpkg.com/yam-sdk-dev/-/yam-sdk-dev-0.0.18-alpha.tgz#b61a4c2474e592fc4386c1284e37f848da4ebd78"
integrity sha512-jB3671GHMbkgRM3fY6ES0p+ZQqwK7UIpemeN1cJC35rrfTVZeJJ/Jt28Qy7tNpjvxWwYTaWSpP1CJgRAENu64A==

yam-sdk@^0.0.16-alpha:
version "0.0.16-alpha"
resolved "https://registry.yarnpkg.com/yam-sdk/-/yam-sdk-0.0.16-alpha.tgz#8b7faf6d715cf54702df79ebf93ba4bdd7664e0c"
Expand Down

1 comment on commit a32423c

@vercel
Copy link

@vercel vercel bot commented on a32423c Feb 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.