Skip to content
This repository has been archived by the owner on Jun 21, 2020. It is now read-only.

Compilation Error bytes32 type in Eth Contracts #197

Open
fredfortier opened this issue Jul 20, 2019 · 2 comments
Open

Compilation Error bytes32 type in Eth Contracts #197

fredfortier opened this issue Jul 20, 2019 · 2 comments

Comments

@fredfortier
Copy link
Contributor

fredfortier commented Jul 20, 2019

I'm getting a compilation error when compiling a secret contract that references a smart contract. I followed an elimination process to determine what in the smart contract abi causes the error and bytes32 seems to be the culprit.

Smart Contracts:
Compiling your contracts...
===========================
> Artifacts written to /home/fredfortier/Code/Mixer/enigma-mixer/build/smart_contracts
> Compiled successfully using:
   - solc: 0.5.8+commit.23d335f2.Emscripten.clang

Compiling Secret Contract "mixer"...
   Compiling contract v0.1.0 (/home/fredfortier/Code/Mixer/enigma-mixer/secret_contracts/mixer)
error: custom attribute panicked
  --> src/lib.rs:26:1
   |
26 | #[eth_contract("Mixer.json")]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: message: called `Result::unwrap()` on an `Err` value: TokenParseError { error: "unexpected token" }

error: aborting due to previous error

error: Could not compile `contract`.

To learn more, run the command again with --verbose.
Something went wrong compiling secret contract mixer, aborting.

See scrtlabs/discovery-cli#4 for context.

@AvishaiW
Copy link
Contributor

@fredfortier how urgent is this?

@fredfortier
Copy link
Contributor Author

The most urgent aspect of this is probably to confirm the root cause. If the issue is truly limited to the bytes32 type, I can work around it for now.

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

No branches or pull requests

2 participants