fbpx

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…

0 Comments

Leave a Reply

More great articles

Understanding Truffle variable injection magic in test files

In Truffle, when you write tests, you can use 'artifacts' and 'web3' objects, without defining these names: const MyContract =…

Read Story

Basic testing workflow with Truffle – Part I

In this video, I will show you what is the basic workflow when you test Solidity smart contracts with the…

Read Story

Debugging “VM Exception: invalid opcode / revert”

When I started learning Solidity, there was nothing more frustrating than running accross "VM Exception: invalid opcode" or "VM Exception:…

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