0

I have a contract value inside the Drizzle store. It updates correctly when a transaction directly interacts with a contract. But it doesn't updates when the transaction is internal. I want to update the value manually using Redux middleware. But I can't figure out how to forcefully update cacheCall stored value?

0

Tried to implement such functionality by introducing new properties in contract json schema. Here is possible to add contract addresses interaction with which will cause the state update.

Contract1.json should look like this:

{
  "contractName": "Contract1",
  "abi": [],
  ...
  "mockContractName": "Contract2",
  ...
  "networks": {
    "1": {
      ...,
      "address": "0x...",
      "addressesToSync": ["0x...", "0x..."],
      ...
    },
    ...
}

Implementation: https://github.com/34x4p08/drizzle/tree/contracts-json-shema

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.