Code Monkey home page Code Monkey logo

Comments (4)

dhyansraj avatar dhyansraj commented on July 26, 2024

Can you provide more details about your deployment? Have you deployed both contracts from Quorum Maker from the 'Compile & Deploy' tab? Or from an external tool? Are the transactions invoked privately or publicly ?

from quorum-maker.

RomanG11 avatar RomanG11 commented on July 26, 2024

File 1:
pragma solidity ^0.4.18;

contract Contract1 {

bool public a = true;

function geta () public constant returns (bool) {
return a;
}
}

File2:
pragma solidity ^0.4.18;

contract Contract1 {
bool public a;
function geta () public constant returns (bool);
}

contract Contract2 {
function geta () public constant returns (bool) {
return cont.geta();
}

Contract1 public cont;

function Contract2 (address addr) public {
cont = Contract1(addr);
}
}

and migration :
var Contract1 = artifacts.require("./Contract1.sol");
var Contract2 = artifacts.require("./Contract2.sol");

web3.personal.unlockAccount(web3.eth.accounts[0]);

module.exports = function(deployer) {

deployer.then(async () => {
	let cont1 = await deployer.deploy(Contract1);
	console.log("address = " + cont1.address);
	let cont2 = await deployer.deploy(Contract2, cont1.address);

	console.log ("there");
	console.log("cont1 " , await cont1.a());
	console.log("cont2 " , await cont2.geta());
})

}

Deployed by truffle, public transaction.
I found that contracts works good before 22 compiler version. But after 0.4.21 contract hasn't access to another contract storage

from quorum-maker.

RomanG11 avatar RomanG11 commented on July 26, 2024

I found the same issue here:
Consensys/quorum#391

from quorum-maker.

rjbanner avatar rjbanner commented on July 26, 2024

Hi @RomanG11 . Since this issue pertains to Quorum itself and not Quorum Maker, we're closing it.

from quorum-maker.

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.