Skip to content

Commit

Permalink
fix(PE-5512): ste validity to true when syncing state from arns cache
Browse files Browse the repository at this point in the history
This should help get ride of the `error: Error reading interaction: Cannot read properties of undefined` when evaluating contract state
  • Loading branch information
dtfiedler committed Jan 26, 2024
1 parent a33e7cb commit e7cb3fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/contract/warp-contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ export class WarpContract implements ObserverContract {
this.evaluationOptions = evaluationOptions;
await this.contract.syncState(
`${this.cacheUrl}/v1/contract/${this.contractId}`,
{
validity: true,
},
);
}
}
Expand Down

0 comments on commit e7cb3fc

Please sign in to comment.