Skip to content

Latest commit

 

History

History
35 lines (18 loc) · 2.1 KB

step-two.md

File metadata and controls

35 lines (18 loc) · 2.1 KB

Home > Guides > Deployment > Step 2

Step 1: Select File Entry Point --> Step 2: ABI File (Optional) --> Step 3: Deploy

Step 2: ABI File (Optional)

After specifying your file entry point as in Step One, you can scroll down to move to Step 2, where you will see the following:

ABI Viewer

If you want to deploy right away, you can ignore this page and move to Step Three. If you want to check if you can generate the ABI file from your smart contract, read further.

Generate the ABI File for Verification

Clicking the "Generate ABI" button will cause the compiler to receive the entry file you specified in Step One, as well as any other .cpp or .hpp files in the folder you provided. The compiler will then attempt to use eosio-cpp under the hood to generate a .wasm and .abi file. If both files are available, the compilation is successful and the contents of the .abi file are given to the tool to display. It will look something like this:

After Successful Compile

In the section adjacent to this panel, logs for compilation and/or deployment are also available for viewing. If there are warnings or errors originating from the compiler, they will be presented in this section as follows:

Compile Log

Import the ABI File for Deployment

Sometimes, the ABI file you generate won't be correct, or you wish to use a file that you have prepared in advance instead. Then you can click "Import ABI" instead to have the compiler use your imported ABI file:

Import ABI

After supplying the desired .abi file, the import should be successful and your view will change:

After Successful Import

A pill next to the panel for Step Three will denote that you are using an imported ABI file.

You can now proceed to Step Three to deploy your smart contract.