Add description of ethereum part before compiling demo code.
@@ -34,3 +34,17 @@ The Demo C code that calls the smart contract is placed in:
|\<SDKRoot\>/demo/demo_platone/demo_platone_mycontract.c |PLATONE demo use case |
|\<SDKRoot\>/demo/demo_fiscobcos/demo_fiscobcos_helloworld.c |FISCO-BCOS demo use case |
+Before compiling the Demo, you need to modify the following parts of the Demo C code:
+- For ETHEREUM, PLATON, FISCO-BCOS, PLATONE:
+ 1. Search for `demoUrl` and fill in the node URL (including port) as the IP address and RPC port of the actual deployed node or simulator
+ 2. If the demo needs to use the native private key, search for `native_demoKey` and set the client private key as:
+ - For ETHEREUM, set it to the private key of any account generated by ganache
+ - For PlatON, there is no need to modify the private key in the Demo
+ - For PlatONE, there is no need to modify the private key in the Demo
+ - For FISCO-BCOS, set it to the native format private key corresponding to the private key under <FISCO-BCOS_ROOT>/console/accounts
+ 3. If the demo needs to use the native private key, search for `pkcs_demoKey` and set the client private key as:
+ - For Ethereum, set the PKCS format private key corresponding to the private key of any account generated by Ganache
+ - For PlatONE, there is no need to modify the private key in the Demo
+ - For PlatONE, there is no need to modify the private key in the Demo
+ - For FISCO-BCOS, set it to the private key under <FISCO-BCOS_ROOT>/console/accounts
+ 4. Search for `demoRecipientAddress` and modify it to the deployment address of the Demo contract.
