Skip to content

Commit 469b186

Browse files
committed
fix: use 0.3.3 for test
1 parent 7f988f5 commit 469b186

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

test/base/Kernel7702TestBase.sol

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,10 @@ contract Kernel7702TestBase is TestPlus, Test {
184184

185185
bytes32 digest;
186186
if (isReplayable) {
187-
digest = chainAgnosticHashTypedData(address(kernel), "Kernel", "0.3.2", hash);
187+
digest = chainAgnosticHashTypedData(address(kernel), "Kernel", "0.3.3", hash);
188188
} else {
189189
digest =
190-
keccak256(abi.encodePacked("\x19\x01", _buildDomainSeparator("Kernel", "0.3.2", address(kernel)), hash));
190+
keccak256(abi.encodePacked("\x19\x01", _buildDomainSeparator("Kernel", "0.3.3", address(kernel)), hash));
191191
}
192192

193193
return digest;
@@ -1038,7 +1038,7 @@ contract Kernel7702TestBase is TestPlus, Test {
10381038
function testSignatureRoot(bytes32 hash) external whenInitialized {
10391039
bytes32 wrappedHash = keccak256(abi.encode(keccak256("Kernel(bytes32 hash)"), hash));
10401040
bytes32 digest = keccak256(
1041-
abi.encodePacked("\x19\x01", _buildDomainSeparator("Kernel", "0.3.2", address(kernel)), wrappedHash)
1041+
abi.encodePacked("\x19\x01", _buildDomainSeparator("Kernel", "0.3.3", address(kernel)), wrappedHash)
10421042
);
10431043
bytes memory sig = _rootSignDigest(digest, true);
10441044
sig = abi.encodePacked(hex"00", sig);
@@ -1067,7 +1067,7 @@ contract Kernel7702TestBase is TestPlus, Test {
10671067

10681068
bytes32 wrappedHash = keccak256(abi.encode(keccak256("Kernel(bytes32 hash)"), hash));
10691069
bytes32 digest = keccak256(
1070-
abi.encodePacked("\x19\x01", _buildDomainSeparator("Kernel", "0.3.2", address(kernel)), wrappedHash)
1070+
abi.encodePacked("\x19\x01", _buildDomainSeparator("Kernel", "0.3.3", address(kernel)), wrappedHash)
10711071
);
10721072
bytes memory sig = _validatorSignDigest(digest, true);
10731073
sig = abi.encodePacked(hex"01", address(enabledValidator), sig);
@@ -1095,7 +1095,7 @@ contract Kernel7702TestBase is TestPlus, Test {
10951095
);
10961096
bytes32 wrappedHash = keccak256(abi.encode(keccak256("Kernel(bytes32 hash)"), hash));
10971097
bytes32 digest = keccak256(
1098-
abi.encodePacked("\x19\x01", _buildDomainSeparator("Kernel", "0.3.2", address(kernel)), wrappedHash)
1098+
abi.encodePacked("\x19\x01", _buildDomainSeparator("Kernel", "0.3.3", address(kernel)), wrappedHash)
10991099
);
11001100
bytes memory sig = _permissionSignDigest(digest, true);
11011101
sig = abi.encodePacked(hex"02", PermissionId.unwrap(enabledPermission), hex"ff", sig);

test/base/KernelTestBase.sol

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,10 @@ abstract contract KernelTestBase is TestPlus, Test {
191191

192192
bytes32 digest;
193193
if (isReplayable) {
194-
digest = chainAgnosticHashTypedData(address(kernel), "Kernel", "0.3.2", hash);
194+
digest = chainAgnosticHashTypedData(address(kernel), "Kernel", "0.3.3", hash);
195195
} else {
196196
digest =
197-
keccak256(abi.encodePacked("\x19\x01", _buildDomainSeparator("Kernel", "0.3.2", address(kernel)), hash));
197+
keccak256(abi.encodePacked("\x19\x01", _buildDomainSeparator("Kernel", "0.3.3", address(kernel)), hash));
198198
}
199199

200200
return digest;
@@ -1079,7 +1079,7 @@ abstract contract KernelTestBase is TestPlus, Test {
10791079
function testSignatureRoot(bytes32 hash) external whenInitialized {
10801080
bytes32 wrappedHash = keccak256(abi.encode(keccak256("Kernel(bytes32 hash)"), hash));
10811081
bytes32 digest = keccak256(
1082-
abi.encodePacked("\x19\x01", _buildDomainSeparator("Kernel", "0.3.2", address(kernel)), wrappedHash)
1082+
abi.encodePacked("\x19\x01", _buildDomainSeparator("Kernel", "0.3.3", address(kernel)), wrappedHash)
10831083
);
10841084
bytes memory sig = _rootSignDigest(digest, true);
10851085
sig = abi.encodePacked(hex"00", sig);
@@ -1108,7 +1108,7 @@ abstract contract KernelTestBase is TestPlus, Test {
11081108

11091109
bytes32 wrappedHash = keccak256(abi.encode(keccak256("Kernel(bytes32 hash)"), hash));
11101110
bytes32 digest = keccak256(
1111-
abi.encodePacked("\x19\x01", _buildDomainSeparator("Kernel", "0.3.2", address(kernel)), wrappedHash)
1111+
abi.encodePacked("\x19\x01", _buildDomainSeparator("Kernel", "0.3.3", address(kernel)), wrappedHash)
11121112
);
11131113
bytes memory sig = _validatorSignDigest(digest, true);
11141114
sig = abi.encodePacked(hex"01", address(enabledValidator), sig);
@@ -1136,7 +1136,7 @@ abstract contract KernelTestBase is TestPlus, Test {
11361136
);
11371137
bytes32 wrappedHash = keccak256(abi.encode(keccak256("Kernel(bytes32 hash)"), hash));
11381138
bytes32 digest = keccak256(
1139-
abi.encodePacked("\x19\x01", _buildDomainSeparator("Kernel", "0.3.2", address(kernel)), wrappedHash)
1139+
abi.encodePacked("\x19\x01", _buildDomainSeparator("Kernel", "0.3.3", address(kernel)), wrappedHash)
11401140
);
11411141
bytes memory sig = _permissionSignDigest(digest, true);
11421142
sig = abi.encodePacked(hex"02", PermissionId.unwrap(enabledPermission), hex"ff", sig);

0 commit comments

Comments
 (0)