Update fill prefetch CLI (#171)

* Update fill prefetch CLI to accept env variables

* Clean up assets before building util package

* Accomodate change in other watchers and codegen

* Add logs for debugging failing test in CI
This commit is contained in:
prathamesh0
2022-09-06 13:19:14 +05:30
committed by GitHub
parent 8af7417df6
commit 1e284bd07e
9 changed files with 36 additions and 16 deletions
@@ -514,6 +514,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);
const addressArray = generateDummyAddresses(4);
@@ -647,6 +648,7 @@ describe('Get value from storage', () => {
});
it('get value for fixed size arrays of dynamic byte array type', async () => {
console.log('testFixedArrays.address', testFixedArrays.address);
const { value, proof } = await getStorageValue(storageLayout, getStorageAt, blockHash, testFixedArrays.address, 'bytesArray');
expect(value).to.eql(bytesArray);
const proofData = JSON.parse(proof.data);
@@ -750,6 +752,7 @@ describe('Get value from storage', () => {
});
it('get value of dynamic bytes type array by index', async () => {
console.log('testFixedArrays.address', testFixedArrays.address);
const arrayIndex = 2;
const { value, proof } = await getStorageValue(storageLayout, getStorageAt, blockHash, testFixedArrays.address, 'bytesArray', arrayIndex);
expect(value).to.eql(bytesArray[arrayIndex]);