Currently all the tests in TestSwaplace have the allowed as zero address. So the packing and parsing of non zero addresses aren't checked anywhere in the entire test suite.
Describe Preferred Solution
Write a test case to test parseData() and packData() where the allowed is a non-zero address.
Refactor Request
Describe the Refactor Request
Currently all the tests in TestSwaplace have the
allowed
as zero address. So the packing and parsing of non zero addresses aren't checked anywhere in the entire test suite.Describe Preferred Solution
Write a test case to test
parseData()
andpackData()
where theallowed
is a non-zero address.Describe Alternatives
Related Code
Additional Context