Skip to content

Commit 756c9b4

Browse files
committed
fix: add gasLimit
1 parent a095c6a commit 756c9b4

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

local-tests/tests/testUseEoaSessionSigsClaimAndMint.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const testUseEoaSessionSigsClaimAndMint = async (
1818
const { claims } = await devEnv.litNodeClient.executeJs({
1919
sessionSigs: eoaSessionSigs,
2020
code: `(async () => {
21-
Lit.Actions.claimKey({keyId: "keyId"});
21+
Lit.Actions.claimKey({ keyId: "keyId" });
2222
})();`,
2323
});
2424

@@ -31,12 +31,12 @@ export const testUseEoaSessionSigsClaimAndMint = async (
3131

3232
const claimMaterial = {
3333
keyType: keyType,
34-
derivedKeyId: derivedKeyId,
34+
derivedKeyId: `0x${derivedKeyId}`,
3535
signatures: signatures,
3636
}
3737

3838
const authMethodData = {
39-
keyType: 2,
39+
keyType: keyType,
4040
permittedIpfsCIDs: [],
4141
permittedIpfsCIDScopes: [],
4242
permittedAddresses: [],
@@ -50,16 +50,15 @@ export const testUseEoaSessionSigsClaimAndMint = async (
5050
sendPkpToItself: true,
5151
}
5252

53-
const mintCost = await devEnv.contractsClient.pkpNftContract.read.mintCost();
54-
5553
const tx = await devEnv.contractsClient.pkpHelperContract.write.claimAndMintNextAndAddAuthMethodsWithTypes(
5654
claimMaterial,
5755
authMethodData,
5856
{
59-
value: mintCost,
57+
gasLimit: 500000
6058
}
6159
)
6260

61+
6362
console.log("tx:", tx);
6463

6564
devEnv.releasePrivateKeyFromUser(alice);

0 commit comments

Comments
 (0)