README
solidity-upgrade
This is a work in progress Prettier Plugin for Refactoring Solidity 0.4.x code to 0.5.x code. This tool does the following tasks currently:
- Change pragma version to
^0.5.0. - Add
calldatastorage keyword infront ofexternalfunction parameters andmemoryinfront of other function's parameters that don't already have a defined parameter storage location.
Installation
Install both prettier and solidity-refactor:
npm install --save-dev prettier solidity-refactor
Usage
This plugin allows you to configure prettier to your needs. Command with my personal config is
prettier --write --tab-width 4 --print-width 140 '**/*.sol'