refactor: verify state cache before checking interactions cache #30

This commit is contained in:
ppedziwiatr
2021-10-05 22:38:00 +02:00
committed by Piotr Pędziwiatr
parent dc0191edd0
commit ee564aaa13
16 changed files with 166 additions and 23123 deletions

View File

@@ -21,13 +21,12 @@ async function main() {
const smartweave = SmartWeaveWebFactory.memCached(arweave);
const contract = smartweave.contract(contractTxId)
.setEvaluationOptions({
ignoreExceptions: false,
stackTrace: {
saveState: false
}
});
const contract = smartweave.contract(contractTxId).setEvaluationOptions({
ignoreExceptions: false,
stackTrace: {
saveState: false
}
});
const { state, validity } = await contract.readState();