You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
should be able to get values in a bytes32 => OtherPackedStruct mapping:
+ expected - actual
{
"packedA": "0x558ba9b8d78713fbf768c1f8a584485B4003f43F"
- "packedB": "0x3f"
+ "packedB": "0x000000000000000000000001"
}
System Specs:
OS: Linux/Ubuntu
The text was updated successfully, but these errors were encountered:
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.mapping(bytes32 => SimpleStruct)
✔️mapping(bytes32 => PackedStruct)
✔️mapping(bytes32 => OtherPackedStruct)
🔴Reproduction steps
npm i
npx hardhat typechain
yarn run mocha test/unit/mock/readable-storage-logic.spec.ts
Expected behavior
System Specs:
The text was updated successfully, but these errors were encountered: