mirror of
https://github.com/cerc-io/watcher-ts
synced 2026-09-08 00:44:06 +00:00
Clear cache of latest entities on event processing error (#201)
* Clear cache of latest entities on event processing error * Remove lighthouse-watcher and update ethersjs version * Handle GraphDecimal type in state entity * Add option for comparing all entities using paginate * Clear pruned cached entities at intervals * Move ipld-demo to graph-node package and remove reset-dbs script * Implement changes in all watchers and codegen
This commit is contained in:
@@ -806,6 +806,7 @@ describe('Get value from storage', () => {
|
||||
const bytesLength = Math.floor(Math.random() * 64);
|
||||
return ethers.utils.hexlify(ethers.utils.randomBytes(bytesLength));
|
||||
});
|
||||
console.log('bytesArray', bytesArray);
|
||||
|
||||
before(async () => {
|
||||
({ contract: testDynamicArrays, storageLayout } = contracts.TestDynamicArrays);
|
||||
@@ -952,6 +953,7 @@ describe('Get value from storage', () => {
|
||||
});
|
||||
|
||||
it('get value for dynamic sized array of bytes', async () => {
|
||||
console.log('testFixedArrays.address', testDynamicArrays.address);
|
||||
let { value, proof } = await getStorageValue(storageLayout, getStorageAt, blockHash, testDynamicArrays.address, 'bytesArray');
|
||||
expect(value).to.eql(bytesArray);
|
||||
const proofData = JSON.parse(proof.data);
|
||||
|
||||
Reference in New Issue
Block a user