Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions contracts/v2/FiatTokenUtil.sol
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,11 @@ contract FiatTokenUtil {
address addr1;
address addr2;
assembly {
addr1 := mload(add(packed, 20))
addr2 := mload(add(packed, 40))
// Account for 32-byte length prefix in memory
// First address starts at offset 32 (after length field)
addr1 := mload(add(packed, 32))
// Second address starts at offset 52 (32 + 20 bytes of first address)
addr2 := mload(add(packed, 52))
}
return abi.encode(addr1, addr2);
}
Expand Down