diff --git a/package.json b/package.json index fc08ba2..ca10879 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "@testing-library/user-event": "^13.5.0", "ethers": "^5.7.2", "js-base64": "^3.7.2", - "lit-js-sdk": "file:.yalc/lit-js-sdk", + "lit-js-sdk": "^1.2.31", "react": "^18.2.0", "react-dom": "^18.2.0", "react-scripts": "5.0.1", diff --git a/src/App.js b/src/App.js index 83e7fd5..13547b8 100644 --- a/src/App.js +++ b/src/App.js @@ -81,6 +81,7 @@ function App() { console.log("minted PKP with eth address: ", ethAddress); const pkpPublicKey = await pkpContract.getPubkey(tokenIdFromEvent); setPkpPublicKey(pkpPublicKey); + setStatus("Minted PKP"); }; const handleEncryptThenDecrypt = async () => { @@ -127,7 +128,7 @@ function App() { }; // get the user a session with it - const litNodeClient = new LitJsSdk.LitNodeClient(); + const litNodeClient = new LitJsSdk.LitNodeClient({ litNetwork: "serrano" }); await litNodeClient.connect(); const sessionSigs = await litNodeClient.getSessionSigs({ diff --git a/src/abis/deployed-contracts.json b/src/abis/deployed-contracts.json index 1b646d5..b06cc53 100644 --- a/src/abis/deployed-contracts.json +++ b/src/abis/deployed-contracts.json @@ -4,9 +4,9 @@ "litTokenContractAddress": "0x541C8a3D27643002fb8A37dCf42D22940B5b2F51", "accessControlConditionsContractAddress": "0x6620A0e03Ca33a3818f1539DF94f9807b12B9Ec2", "pubkeyRouterContractAddress": "0xEA287AF8d8835eb20175875e89576bf583539B37", - "pkpNftContractAddress": "0xd4CF0c73eCcFd4B4c7742564f8fdBAC6510771c1", + "pkpNftContractAddress": "0x86062B7a01B8b2e22619dBE0C15cbe3F7EBd0E92", "rateLimitNftContractAddress": "0xE094c76Ec6bad7CbA6181C8b34Bc41faC7EbdF43", - "pkpHelperContractAddress": "0x961AFF1d8020ce78502B8335b02A7416BEa9A28e", + "pkpHelperContractAddress": "0xffD53EeAD24a54CA7189596eF1aa3f1369753611", "pkpPermissionsContractAddress": "0x274d0C69fCfC40f71E57f81E8eA5Bd786a96B832", "pkpNftMetadataContractAddress": "0x46c568B561Cde9ded66Be7d8044C141481c74d0f", "chainId": 80001, @@ -15,4 +15,4 @@ "litNodeDomainName": "127.0.0.1", "litNodePort": 7470, "rocketPort": 7470 -} +} \ No newline at end of file diff --git a/yalc.lock b/yalc.lock deleted file mode 100644 index d6f18bf..0000000 --- a/yalc.lock +++ /dev/null @@ -1,9 +0,0 @@ -{ - "version": "v1", - "packages": { - "lit-js-sdk": { - "signature": "c71561d0d1f9e965d7937ed22756007f", - "file": true - } - } -} \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index 0ded3f4..7fd3acd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6884,8 +6884,10 @@ lit-connect-modal@^0.1.10: dependencies: micromodal "^0.4.10" -"lit-js-sdk@file:.yalc/lit-js-sdk": - version "1.2.29" +lit-js-sdk@^1.2.31: + version "1.2.31" + resolved "https://registry.yarnpkg.com/lit-js-sdk/-/lit-js-sdk-1.2.31.tgz#6b78b8e705fd1fc9124cab2b122b7daba7550db7" + integrity sha512-1KAEB+ZYJBSOIc8/j8al/C11DVH++MOuitJM/xsij+mJeupaNW0W7ZSTECxzEPnw3huPJPPrB/OSQfW+rON+BA== dependencies: "@ethersproject/bytes" "^5.5.0" "@ethersproject/contracts" "^5.2.0"