defi-wonderland / smock

The Solidity mocking library
MIT License
321 stars 39 forks source link

Getting a struct inside a map of a mock does not always return the proper structure #188

Open jeremyjams opened 10 months ago

jeremyjams commented 10 months ago

Describe the bug Getting a struct inside a map of a mock does not always return the proper structure.

3 new tests reading a struct in a map have been added to the readable-storage-logic.spec.ts test suite.

Reproduction steps

  1. Checkout code to the attached PR (#189)
  2. npm i
  3. npx hardhat typechain
  4. yarn run mocha test/unit/mock/readable-storage-logic.spec.ts

image

Expected behavior

System Specs: