Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replicating tax-bracket fails #4

Open
olyashok opened this issue Jul 17, 2022 · 5 comments
Open

Replicating tax-bracket fails #4

olyashok opened this issue Jul 17, 2022 · 5 comments

Comments

@olyashok
Copy link

  1. Build and deployed everything.
  2. Backend up.
  3. Schema deployed fine and i got zkDoc address via "yarn hardhat build-deploy-schema --schema /home/node/zkcv/zkdocs/zkdocs-backend/test/test_schemas/tax_bracket.json --network localhost. "
  4. Did /home/node/zkcv/zkdocs/cp_script.sh tax_bracket /home/node/zkcv/zkdocs/zkdocs-backend/test/test_schemas/tax_bracket.json
  5. Checked zkdocs-ui/src/lib/Config.ts
  6. Did ./cp_snarkjs.sh

Still getting this error on Fill form in the client:

Error: Error: call revert exception [ See: https://links.ethers.org/v5-errors-CALL_EXCEPTION ] (method="schemaHash()", data="0x", errorArgs=null, errorName=null, errorSignature=null, reason=null, code=CALL_EXCEPTION, version=abi/5.6.1)

@olyashok
Copy link
Author

@sragss @skgbafa

i can see the contract on ethereal - schemaHash() works fine there - no idea why this call fails in SelectDocWidget.tsx

contract
.schemaHash()
.then(async (schemaHash: string) => {
let schemaMeta = await findSchemaForHash(schemaHash);
if (schemaMeta === undefined) {
setError("No schema found.");
} else {
schemaMeta.contractAddr = contractAddress!;
props.setSchemaMeta(schemaMeta!);
}
})
.catch((err: any) => setError(err));
};

@sragss
Copy link
Collaborator

sragss commented Jul 18, 2022

Can you confirm that your wallet is connected to the hardhat testnet?

@olyashok
Copy link
Author

olyashok commented Jul 18, 2022 via email

@j-wang2
Copy link

j-wang2 commented Oct 17, 2022

Any updates on this? I am also having the same error :( @olyashok @sragss

@sragss
Copy link
Collaborator

sragss commented Dec 16, 2022

Could you try the new demo instructions? Should simplify the process quite a bit.

https://github.com/a16z/zkdocs#local-demo

I believe this error could only occur due to connecting to the wrong network or entering the wrong zkDoc contract address. Both of those footguns could be mitigated with a more error resistant UI flow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants