fix: VRF issues with internal writes or 'strict' mode. #232

This commit is contained in:
ppe
2022-10-03 15:41:34 +02:00
committed by just_ppe
parent 4216259a77
commit c1bfb2f585
8 changed files with 107 additions and 25 deletions

View File

@@ -31,12 +31,11 @@ async function main() {
logging: false // Enable network request logging
});
const warp = WarpFactory.forMainnet({...defaultCacheOptions, inMemory: false});
const warp = WarpFactory.forMainnet({...defaultCacheOptions, inMemory: true});
try {
const contract = warp.contract("5Yt1IujBmOm1LSux9KDUTjCE7rJqepzP7gZKf_DyzWI");
const contract = warp.contract("Ws9hhYckc-zSnVmbBep6q_kZD5zmzYzDmgMC50nMiuE");
const cacheResult = await contract
.setEvaluationOptions({
allowBigInt: true
})
.readState();