Code Monkey home page Code Monkey logo

Comments (4)

varasev avatar varasev commented on May 24, 2024

Hi! The name of your constructor is PoeNetworkConsensus but it must be PoaNetworkConsensus. Maybe you made a mistake?

from poa-network-consensus-contracts.

jordipainan avatar jordipainan commented on May 24, 2024

Hi ! Sorry I mistyped it here, but not in my code. Im gonna edit now in the issue.

from poa-network-consensus-contracts.

vbaranov avatar vbaranov commented on May 24, 2024

@jordipainan

It compiles well and I'm able to put the bytecode in the spec.json as a precompiled contract.`

how do you compile PoaNetworkConsensus and what bytecode you set in the spec? I am asking because PoaNetworkConsensus has input parameters in the constructor.

Also,

  • what is your basictoml.toml content?
  • what is your spec.json content?
  • which Parity version are you using?

Consider using https://github.com/poanetwork/poa-test-setup#start-moc-node script to start POA network. It uses https://github.com/poanetwork/poa-network-consensus-contracts repo as a submodule. You can change the source of submodule to your own forked repo with contracts to test, if your setup is correct.

from poa-network-consensus-contracts.

jordipainan avatar jordipainan commented on May 24, 2024

Hi @vbaranov , my fault, your code works like a charm. I pasted the wrong bytecode in the spec (with not expected params in the constructor).
I opened the issue because I got a lot of errors in the past trying to build my concept of PoA with the constructor and I thought its possibly the same (an error in the contract and not in the client) but not the case.
On the other hand Parity still gets stuck, I reported it to the team ^^ .
Thank you and sorry for the inconvenience.

from poa-network-consensus-contracts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.