This is going to be short question and may be silly, but I'm literally stuck with a problem, where I need to pass address(0)
to function in Truffle Test in JS and don't really know how to do it. In solidity it's simply address(0)
, but in Truffle JS?
Truffle – Get address(0) in Truffle Test
truffletruffle-test
Best Answer
You can simply use
0
, or0x0000000000000000000000000000000000000000
.address(0)
in Solidity is equivalent to0x0000000000000000000000000000000000000000
.