Categories
Cryptocurrency Ethereum Mastering Development

Unit testing a Solidity Library function with a struct memory argument

I am trying to unit test a Solidity Library contract function using truffle and web3. My simplified Library contract looks like this: pragma solidity >=0.5.16; pragma experimental ABIEncoderV2; library BrickLib { struct ECSignature { uint8 v; } function checkSig(ECSignature memory sig) public pure returns(bool) { return true; } } I am attempting to call that […]