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

Debugging with events

Do you like often use console.log() statement to debug your Javascript code? Convenient, uh? How about Solidity smart contracts, can…

Read Story

Installing the The Ganache GUI | Episode 13 What is Ganache? Ganache is a tool for ethereum dapp developers, supported by the Truffle team. It has 2…

Read Story

Introduction To Truffle | Episode 5 Developing smart contracts and distributed applications is hard. There are a lot of different libraries to use, you often…

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"]