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

Split payment – Part II

Previously, we have implemented the main functionality of our split payment smart contract in Solidity. In this video tutorial, we…

Read Story

Test driven development for Solidity

Do you write tests for your Solidity smart contracts? Congrats if you do, and if don't it's time to start!…

Read Story

Debugging with syntax highlighting

To debug syntax errors, you can rely on Solidity syntax highlighting. Fortunately for us, Remix has syntax highlighting activated by…

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