Concordium / concordium-rust-smart-contracts

Libraries and tools for writing and testing smart contracts on Concordium
https://docs.rs/concordium-std/latest/concordium_std/
Mozilla Public License 2.0
57 stars 35 forks source link

Unable to build using concordium-std 7.0.0 #322

Closed parv0888 closed 1 year ago

parv0888 commented 1 year ago

Bug Description Compilation bug in concordium-std 7.0.0

Steps to Reproduce

  1. Checkout https://github.com/chainorders/concordium-low-code-carbon-credit-marketplace/tree/indexer-integration please note that the branch name is indexer-integration
  2. Change the concordium-std & concordium-cis2 version to the latest version
    [dependencies]
    concordium-std = { version = "*", default-features = false }
    concordium-cis2 = { version = "*", default-features = false }
  3. remove cargo.lock file
  4. Build using cargo concordium build
  5. check the error specially in the state.rs (src/carbon_credit_market/state.rs) file

Expected Result cargo concordium build should succeed

Actual Result

error: expected one of `{`, lifetime, or type, found `,`
  --> src/carbon_credit_market/state.rs:97:10
   |
97 | #[derive(Serial, DeserialWithState, StateClone)]
   |          ^^^^^^ expected one of `{`, lifetime, or type
   |
   = note: this error originates in the derive macro `Serial` (in Nightly builds, run with -Z macro-backtrace for more info)

Versions concordium-std : 7.0.0 concordium-cis2: 4.0.0