works on serrano, yay

This commit is contained in:
Chris Cassano 2022-11-10 21:05:26 -08:00
parent 56a1b69243
commit f3bd10bdbf
5 changed files with 10 additions and 16 deletions

View File

@ -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",

View File

@ -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({

View File

@ -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,

View File

@ -1,9 +0,0 @@
{
"version": "v1",
"packages": {
"lit-js-sdk": {
"signature": "c71561d0d1f9e965d7937ed22756007f",
"file": true
}
}
}

View File

@ -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"