Skip to content

Commit

Permalink
Merge pull request #69 from firstbatchxyz/erhant/gw
Browse files Browse the repository at this point in the history
add sequencer url
  • Loading branch information
erhant authored Dec 27, 2023
2 parents b3644bf + c7e85aa commit a58fd15
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hollowdb",
"version": "1.3.4",
"version": "1.3.5",
"description": "A decentralized privacy-preserving key-value database",
"license": "MIT",
"homepage": "https://github.com/firstbatchxyz/hollowdb#readme",
Expand Down
1 change: 1 addition & 0 deletions src/base/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class Base<M extends ContractMode> {
.setEvaluationOptions({
allowBigInt: true, // bigInt is required for circuits
useKVStorage: true,
sequencerUrl: warp.environment === 'mainnet' ? 'https://gw.warp.cc/' : undefined,
})
.connect(this.signer);
}
Expand Down
4 changes: 2 additions & 2 deletions tests/htx.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ describe('hash.txid value tests', () => {
const valueHash = '0x' + hashToGroup(JSON.stringify(NEXT_VALUE)).toString(16);

const curHTX = await owner.get(KEY);
const [curValueHash] = curHTX.split('.');
const [curValueHash] = curHTX!.split('.');

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

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

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

0 comments on commit a58fd15

Please sign in to comment.