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
You should see a list of commands available in Truffle.
Create a new file named
MultiSigWallet.sol inside the folder
Copy and paste contract that we wrote using Remix, into the new file
Code for the contract is here
Let's quickly check that our code compiles. Type
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