1. Setup

Create a folder solidity-multi-sig-wallet. We will create a Truffle project inside here.

mkdir solidity-multi-sig-wallet
cd solidity-multi-sig-wallet

Install Truffle and create a Truffle project

npm install -g truffle
truffle init

Lastly, install some NPM packages that we will use for testing.

npm init -f
npm i --save-dev chai chai-as-promised

Check that Truffle was installed by typing

truffle

You should see a list of commands available in Truffle.

2. Copy & Paste Code from Remix

Create a new file named MultiSigWallet.sol inside the folder contracts.

Copy and paste contract that we wrote using Remix, into the new file MultiSigWallet.sol

Code for the contract is here

3. Compile

Let's quickly check that our code compiles. Type

truffle compile

You should see a message like this

Compiling your contracts...
===========================
> Compiling ./contracts/Migrations.sol
> Compiling ./contracts/MultiSigWallet.sol
> Artifacts written to /home/me/solidity-multi-sig-wallet/build/contracts
> Compiled successfully using:
   - solc: 0.5.16+commit.9c3226ce.Emscripten.clang