build

Build a contract

pop build [OPTIONS]

Build an existing smart contract:

pop build -p ./my_contract

By default, the contract is compiled with debug functionality included.

This enables the contract to output debug messages but increases the contract size and the amount of gas used.

For production builds, use the --release flag: --release:

pop build -p ./my_contract --release

For Pop CLI versions <0.3.0 the pop build command is pop build contract

Last updated