refactor: verify state cache before checking interactions cache #30
This commit is contained in:
committed by
Piotr Pędziwiatr
parent
dc0191edd0
commit
ee564aaa13
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user