Merge account abstraction work into master (#5274)
Co-authored-by: Ernesto García <ernestognw@gmail.com> Co-authored-by: Elias Rad <146735585+nnsW3@users.noreply.github.com> Co-authored-by: cairo <cairoeth@protonmail.com> Co-authored-by: Arr00 <13561405+arr00@users.noreply.github.com>
This commit is contained in:
@ -11,14 +11,14 @@ import {Packing} from "@openzeppelin/contracts/utils/Packing.sol";
|
||||
`;
|
||||
|
||||
const testPack = (left, right) => `\
|
||||
function testPack(bytes${left} left, bytes${right} right) external {
|
||||
function testPack(bytes${left} left, bytes${right} right) external pure {
|
||||
assertEq(left, Packing.pack_${left}_${right}(left, right).extract_${left + right}_${left}(0));
|
||||
assertEq(right, Packing.pack_${left}_${right}(left, right).extract_${left + right}_${right}(${left}));
|
||||
}
|
||||
`;
|
||||
|
||||
const testReplace = (outer, inner) => `\
|
||||
function testReplace(bytes${outer} container, bytes${inner} newValue, uint8 offset) external {
|
||||
function testReplace(bytes${outer} container, bytes${inner} newValue, uint8 offset) external pure {
|
||||
offset = uint8(bound(offset, 0, ${outer - inner}));
|
||||
|
||||
bytes${inner} oldValue = container.extract_${outer}_${inner}(offset);
|
||||
|
||||
Reference in New Issue
Block a user