Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.

Commit 244424f

Browse files
authored
make left-padded (#89)
1 parent a5401e3 commit 244424f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

contracts/optimistic-ethereum/libraries/utils/Lib_Bytes32Utils.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ library Lib_Bytes32Utils {
5555
bytes32 _out
5656
)
5757
{
58-
return bytes32(bytes20(_in));
58+
return bytes32(uint256(_in));
5959
}
6060
}

test/data/json/libraries/utils/Lib_Bytes32Utils.test.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"fromAddress": {
4242
"input address": {
4343
"in": ["0x1212121212121212121212121212121212121212"],
44-
"out": ["0x1212121212121212121212121212121212121212000000000000000000000000"]
44+
"out": ["0x0000000000000000000000001212121212121212121212121212121212121212"]
4545
}
4646
}
4747
}

0 commit comments

Comments
 (0)