We recommend to go through the official Ink! Documentation to learn the basics about contract developing.
Fat Contract Examples
We keep a list of contract examples for every extra feature of Fat Contract compared with the original Ink! contract.
Handle Upload/Instantiation Failure
Code upload could failed if there are illegal instructions in your compiled WASM. Phala uses Substrate’s
contract_pallet for contract execution, check its code examination mechanism for potential illegal instructions. Report in the #dev channel of our Discord and we will help you find the exact reason.
The contract instantiation could also fail for runtime errors. For now, the contract execution log is not directly available to the developers. Join our Discord and we can help forward the Worker logs if necessary.