Solidity

Solidity tips and tricks to save gas and reduce bytecode size

Solidity is a special language with many little quirks. A lot of things behave differently in Solidity than most other languages as Solidity is created to work on the EVM with its limited feature set. I wrote a blog post with ten tips to save gas in Solidity a few months back and it got a great …

Solidity tips and tricks to save gas and reduce bytecode size Read More »

A dev’s journey from Truffle 4 to the unknown world of Truffle 5

The latest version of Solidity kickstarted a season of upgrades in the BUIDL space. The latest version of solidity essentially meant that all your smart contracts are now broken. It all seemed ok though; just a couple day’s work to get caught up. Then, just before Christmas came Truffle 5 with support for solidity 0.5 and web3 beta, and …

A dev’s journey from Truffle 4 to the unknown world of Truffle 5 Read More »

[Tool] Refactor your solidity 0.4.x code to solidity 0.5.x code

Solidity 0.5.X is here with a lot of features and breaking changes. Making all the changes to your solidity code manually, especially adding the explicitness requirements can be really cumbersome (and boring) for large projects. This is why I decided to make a codemod for Solidity that does most of the work for you. It’s …

[Tool] Refactor your solidity 0.4.x code to solidity 0.5.x code Read More »

Compile Solidity Smart Contracts Faster in Truffle Projects

The Truffle Suite is the most widely used development framework for Solidity development but it is not perfect. We at Polymath, deal with a large set of smart contracts. The sheer number of smart contracts cause the compilation time to go over 80 seconds on my daily driver. Lucky for us, we can make the compilation go faster. …

Compile Solidity Smart Contracts Faster in Truffle Projects Read More »

[Tools] Ethereum debugging helper and Solidity boilerplate

Debugging solidity smart contracts is a pain and takes a lot of time. I made a small user script which decodes the calldata to function names from the Etherscan trace for Kovan testnet. It comes handy when you need to debug some transactions real quick. You’ll get to know which function was the culprit, and …

[Tools] Ethereum debugging helper and Solidity boilerplate Read More »