-
Notifications
You must be signed in to change notification settings - Fork 0
SaleDeedRegistry Contract Deployment
Ranjan Dailata edited this page Dec 16, 2019
·
1 revision
Let's see how one can easily compile and deploy the Stratis Smart Contract. Here's it's more specific to compilation of the SaleDeedRegistry smart contract and it's deployment.
We'll be making use of a Statis tool - Stratis.SmartContracts.Tools.Sct.exe for validating and generating the Byte Code for our smart contract.
C:\Program Files\cirrus-core-hackathon\resources\sdk>Stratis.SmartContracts.Tools.Sct.exe validate E:\GitCode\Stratis\StratisSmartContractsSamples-master\src\SaleDeedRegistry\SaleDeedRegistry.Contract\Contracts\SaleDeedRegistry.cs -sb
Below is what you should see

Copy the ByteCode and let's deploy the same on to the Stratis Cirrus Core.
- Generating an Address - This is the first step that one has to do. The SaleDeedRegistry smart contract depends on the Payee Address. The Payee here is the government for which they will create an unique address for the first where the citizens will use to for paying the fee payments etc.
Here's how one can generate a unique address.

Copy the generated address and remember to use that one as a Payee Address.
- On the Stratis Cirrus Core, there's an option of creating a contract. Click on that button and then use the ByteCode for deployment. Please make sure to set the Payee Address as shown below under parameters.

Specify the password, if it's default then use - Stratis. If everything goes well, you should see the Receipt with no errors.
