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

Compilation Errors with Some Smart Contracts #4

@fredfortier

Description

@fredfortier

I'm getting this compilation error with some smart contracts. This error is familiar and probably related to rust-web3. I'm documenting it here to keep track of it. I decided to create a Solidity interface and use that abi instead of the main contract. This is how I got around rust-web3 abi issues in the past.

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions