diff --git a/blocklock-solidity b/blocklock-solidity index 7395b1d..546c44a 160000 --- a/blocklock-solidity +++ b/blocklock-solidity @@ -1 +1 @@ -Subproject commit 7395b1d610d790fd576bdec817cee09080cfa66a +Subproject commit 546c44a78ea3653a9c0352581e34529b67b89106 diff --git a/package.json b/package.json index 33d16d6..8ab01b5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "blocklock-js", - "version": "0.0.8-rc6", + "version": "0.0.8-rc8", "description": "A library for encrypting and decrypting data for the future", "source": "src/index.ts", "main": "./dist/cjs/index.cjs", diff --git a/src/blocklock.ts b/src/blocklock.ts index b93be1a..f4a07a6 100644 --- a/src/blocklock.ts +++ b/src/blocklock.ts @@ -158,7 +158,7 @@ export class Blocklock { const request = await this.blocklockSender.getRequest.staticCall(requestId) const blockHeight = decodeCondition(request.condition) return { - id: request.decryptionRequestID, + id: request.decryptionRequestId, blockHeight: blockHeight, ciphertext: parseSolidityCiphertext(request.ciphertext) } @@ -174,7 +174,7 @@ export class Blocklock { return new Map(Array.from( requests.map((event) => { - const id = event.args.requestID + const id = event.args.requestId const blockHeight = decodeCondition(event.args.condition) return [id, { diff --git a/src/networks.ts b/src/networks.ts index d91e6a2..6c7f897 100644 --- a/src/networks.ts +++ b/src/networks.ts @@ -23,7 +23,7 @@ export const FILECOIN_CALIBNET: NetworkConfig = { name: "filecoin_calibnet", chainId: 314159n, contractAddress: "0xF00aB3B64c81b6Ce51f8220EB2bFaa2D469cf702", - publicKey: BLOCKLOCK_TESTNET_PUBLIC_KEY, + publicKey: BLOCKLOCK_MAINNET_PUBLIC_KEY, ibeOpts: { hash: keccak_256, k: 128,