Comments (4)
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.
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.
I found the same issue here:
Consensys/quorum#391
from quorum-maker.
Hi @RomanG11 . Since this issue pertains to Quorum itself and not Quorum Maker, we're closing it.
from quorum-maker.
Related Issues (20)
- Is quorum production ready?. Can we use quorum-maker in production systems? HOT 2
- Error: Number can only safely store up to 53 bits HOT 2
- Following Wiki install steps directly leads to nodes hanging after "Adding Whitelist IPs" HOT 5
- Node failure HOT 2
- Master node is down, how to recover the network?
- Quorum maker and Truffle v.5.0.38 migration stucks
- How do nodes backup regularly
- How to migrate data if the server is replaced
- tessera support HOT 2
- nodes hanging when adding Whitelist IPs" HOT 3
- Restoration of blockchain data from secondary node
- Private keys for accounts in genesis.json HOT 2
- Quorum maker could not be attached to my quorum network HOT 2
- Upgrade to use Quorum 2.6 and Tessera 0.10.6 HOT 1
- Invalid reference format HOT 1
- Could not join network
- Quorum Join not happening with current network HOT 1
- Node manager is not starting to create Network HOT 3
- External node Joining
- Error: not able to deploy contract at remote server HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quorum-maker.