Now that we have written the contract, we need to migrate the contracts to our blockchain where we can execute them:
- Copy and paste the orderbook smart contract file to the contracts folder in your Truffle workspace.
- Navigate to the Truffle console Terminal that you had opened earlier for compiling the USD and Gold token contracts. If you closed the console, you can bring it online again by entering truffle console in your Truffle workspace:
- Compile all the contracts by entering the compile command in the Truffle command line.
- Provided there are no errors, your contracts should now be compiled ...