Skip to content

Commit a58fd15

Browse files
authored
Merge pull request #69 from firstbatchxyz/erhant/gw
add sequencer url
2 parents b3644bf + c7e85aa commit a58fd15

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hollowdb",
3-
"version": "1.3.4",
3+
"version": "1.3.5",
44
"description": "A decentralized privacy-preserving key-value database",
55
"license": "MIT",
66
"homepage": "https://github.com/firstbatchxyz/hollowdb#readme",

src/base/base.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export class Base<M extends ContractMode> {
2121
.setEvaluationOptions({
2222
allowBigInt: true, // bigInt is required for circuits
2323
useKVStorage: true,
24+
sequencerUrl: warp.environment === 'mainnet' ? 'https://gw.warp.cc/' : undefined,
2425
})
2526
.connect(this.signer);
2627
}

tests/htx.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ describe('hash.txid value tests', () => {
5555
const valueHash = '0x' + hashToGroup(JSON.stringify(NEXT_VALUE)).toString(16);
5656

5757
const curHTX = await owner.get(KEY);
58-
const [curValueHash] = curHTX.split('.');
58+
const [curValueHash] = curHTX!.split('.');
5959

6060
const {proof} = await prover.proveHashed(KEY_PREIMAGE, BigInt(curValueHash), BigInt(valueHash));
6161
const val: HTXValueType = `${valueHash}.${txId}`;
@@ -65,7 +65,7 @@ describe('hash.txid value tests', () => {
6565

6666
it('should remove an existing value with proof', async () => {
6767
const curHTX = await owner.get(KEY);
68-
const [curValueHash] = curHTX.split('.');
68+
const [curValueHash] = curHTX!.split('.');
6969

7070
const {proof} = await prover.proveHashed(KEY_PREIMAGE, BigInt(curValueHash), BigInt(0));
7171
await owner.remove(KEY, proof);

0 commit comments

Comments
 (0)