File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,11 @@ contract LightAccountFactory {
45
45
);
46
46
}
47
47
48
- function _getCombinedSalt (address owner , uint256 salt ) internal pure returns (bytes32 ) {
49
- return keccak256 (abi.encode (owner, salt));
48
+ function _getCombinedSalt (address owner , uint256 salt ) internal pure returns (bytes32 combinedSalt ) {
49
+ assembly ("memory-safe" ) {
50
+ mstore (0x00 , owner)
51
+ mstore (0x20 , salt)
52
+ combinedSalt := keccak256 (0x00 , 0x40 )
53
+ }
50
54
}
51
55
}
Original file line number Diff line number Diff line change @@ -288,7 +288,7 @@ contract LightAccountTest is Test {
288
288
bytes32 (uint256 (uint160 (0x0000000071727De22E5E9d8BAf0edAc6f37da032 )))
289
289
)
290
290
),
291
- 0x61ded19e9e86ff20a3a8822529fb98ef584c1e9f6e1457dcfdcd1f5e146d7d97
291
+ 0xa677af8a16ab66d988856a88ea647c45da368a588b036126ce3e21645f7891ca
292
292
);
293
293
}
294
294
You can’t perform that action at this time.
0 commit comments