More tricks for bn.js (Big Number) library in Truffle tests

Julien Klepatch

In the last video of the smart contract testing series I showed you the basic usage of the Big Number library to deal with integers.

But Big Number has many more trick up his sleeves 🙂 In this video, I will show you all these tricks so that you feel comfortable manipulating Big Number objects in your Truffle tests:

  • adding big numbers
  • comparing big numbers
  • and more…


Leave a Reply

More great articles

Basic testing workflow with Truffle – Part 2

In this video, we will go through the whole process of test-driven-development (TDD) for Solidity smart contracts: writing the tests…

Read Story

ToDo List Ethereum Dapp (Step5) | Build a smart contract client with Truffle Contract

This tutorial is part of the series ToDo List Ethereum Dapp. It is the Step 5. Tutorials already published: (more…)

Read Story

Unit vs integration tests for smart contracts

Before you rush into testing your Solidity smart contracts, it's important to understand the difference between unit tests and integration…

Read Story

Never miss a minute

Get great content to your inbox every week. No spam.
[contact-form-7 id="6" title="Footer CTA Subscribe Form"]