Skip to main content
2 of 2
edited tags
Badr Bellaj
  • 18.8k
  • 4
  • 59
  • 75

Truffle Drizzle ContractData call keccak256 error

I started with truffle unbox drizzle then made use of my contract.

I can make use of the ContactForm without error in App.js:

<ContractForm
  contract="TheContract"
  method="addData"
  labels={["Title", "Detail"]}
/>

However if I call:

<ContractData
  contract="TheContract"
  method="getData"
  methodArgs={[accounts[0], 0, { from: accounts[0] }]}
/>

It appears as if Drizzle goes through the entire abi and attempts to apply the generateArgsHash and fails at some point where the str is undefined.

Why it does this and not use the method args only, I do not know.

Any ideas please.