Comments (5)
"no code after deployment".
I think this might be caused by the deployment exceeding the block gas limit or running out of gas.
Consider,
- using ganache with very high block gas limit
- increasing the amount of gas you send with the transaction
from ion.
@maxrobot thanks for the quick response. Following your advice, I modified my genesis.js file, increasing the gas limit to 1012 and supplying 107 amount of gas while deploying the EthereumStorage.sol from the ion-cli and was successful in doing so.
Next, Help needed:
Can you please let me know a way to call the functions of the validation contract (Clique.sol) from the ion-cli itself. The functions being the next steps (Step 3,4) in setting up the receiving end of the interoperating blockchains, namely:
function register() public returns (bool) {
ion.registerValidationModule();
return true;
}
and
function RegisterChain(bytes32 _chainId, address[] memory _validators, bytes32 _genesisBlockHash, address _storeAddr) public {
require( _chainId != ion.chainId(), "Cannot add this chain id to chain register" );
if (chains[_chainId]) {
require( !m_blockhashes[_chainId][_genesisBlockHash], "Chain already exists with identical genesis" );
} else {
chains[_chainId] = true;
ion.addChain(_storeAddr, _chainId);
}
setGenesisBlock(_chainId, _validators, _genesisBlockHash);
}
from ion.
https://github.com/clearmatics/ion-cli
Take a look at the docs here.
What you're looking for is the addContractInstance
command that allows you to compile an instance of a contract which then allows you to call functions.
from ion.
@Shirikatsu, thanks for the reply.
I have added the contract instances of the contracts following the steps provided in ion-cli's repo, which I have mentioned in my issue statement.
I wanted to know whether calling functions from the ion-cli itself is possible or not after the required contract has been added and deployed.
If yes how?
Thanks in advance.
from ion.
Use the transactionMessage
command in the ion-cli
to do this.
from ion.
Related Issues (20)
- ganache-cli not found
- Block-scoped declarations error HOT 1
- Specify minimum dependency versions
- Missing provider error
- Install problem on MacOS HOT 1
- Update all contracts for Solidity v0.5.x compatibility HOT 1
- Clique-Ethereum Stack edge-case where multiple instances of storage contract can only hold unique chain data HOT 1
- addContractInstance fails to compile unless the file name is the same name as the contract HOT 1
- Unable to use `getBlockByHash_Clique` when using a ganache test RPC HOT 1
- Ion CLI configuration to allow account/contract setup to be automated upon launch HOT 1
- Ion CLI requires a command to generate IBFT-specific block encoding HOT 1
- Being cross chain, can you explain off chain chain module? How to setup and submit blocks from Chain A to Chain B HOT 6
- Publish contracts artifact HOT 3
- Building the image "ion/dev" ends with errors HOT 4
- can't build ion-cli on macOS 10.14 HOT 2
- Is It possible to deploy Ion on PoW Ethereum chain? I find the Ion is for Rinkeby(PoA) currently. HOT 1
- Tests shouldn't rely on public networks and Infura HOT 1
- No contract code after deployment HOT 13
- State Relaying Mechanism HOT 8
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 ion.