Build Delegator Contracts...
- Git clone "https://github.com/paritytech/ink.git".
- Move "examples/delegator".
- Build contracts by using "build-all.sh".
Deploy & Execute
- Excecute Substrate-Node-Template with Contract Pallet.
- Visit Polkadot/Substrate Portal(https://polkadot.js.org/apps/?rpc=ws%3A%2F%2F127.0.0.1%3A9944#/accounts)
- Go to Contract Page(https://polkadot.js.org/apps/?rpc=ws%3A%2F%2F127.0.0.1%3A9944#/contracts)
- Deploy "delegator/target/ink/accumulator/accumulator.contract".
- Deploy "delegator/target/ink/adder/adder.contract" by indicating "accumlator" address as a parameter.
- Excecute "inc" of adder contract.
- I get a error "system.ExtrinsicFailed contracts.ContractTrapped"
How can I solve this problem?
I could execute delegator example at the latest commit of the github. I could not recognize this cause of the error,but now the error is solved.