Skip to content

Commit 06ec0da

Browse files
committed
changed version to 0.3.2
1 parent a4360fd commit 06ec0da

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

src/Kernel.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ contract Kernel is IAccount, IAccountExecute, IERC7579Account, ValidationManager
151151

152152
function _domainNameAndVersion() internal pure override returns (string memory name, string memory version) {
153153
name = "Kernel";
154-
version = "0.3.1";
154+
version = "0.3.2";
155155
}
156156

157157
receive() external payable {
@@ -370,7 +370,7 @@ contract Kernel is IAccount, IAccountExecute, IERC7579Account, ValidationManager
370370
}
371371
_installValidation(vId, config, validatorData, hookData);
372372
if (selectorData.length == 4) {
373-
// NOTE: we don't allow configure on selector data on v3.1, but using bytes instead of bytes4 for selector data to make sure we are future proof
373+
// NOTE: we don't allow configure on selector data on v3.1+, but using bytes instead of bytes4 for selector data to make sure we are future proof
374374
_setSelector(vId, bytes4(selectorData[0:4]), true);
375375
}
376376
} else if (moduleType == MODULE_TYPE_EXECUTOR) {
@@ -529,7 +529,7 @@ contract Kernel is IAccount, IAccountExecute, IERC7579Account, ValidationManager
529529
}
530530

531531
function accountId() external pure override returns (string memory accountImplementationId) {
532-
return "kernel.advanced.v0.3.1";
532+
return "kernel.advanced.v0.3.2";
533533
}
534534

535535
function supportsExecutionMode(ExecMode mode) external pure override returns (bool) {

src/sdk/KernelTestBase.sol

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ abstract contract KernelTestBase is TestPlus, Test {
208208
);
209209

210210
bytes32 digest =
211-
keccak256(abi.encodePacked("\x19\x01", _buildDomainSeparator("Kernel", "0.3.1", address(kernel)), hash));
211+
keccak256(abi.encodePacked("\x19\x01", _buildDomainSeparator("Kernel", "0.3.2", address(kernel)), hash));
212212

213213
return digest;
214214
}
@@ -1037,7 +1037,7 @@ abstract contract KernelTestBase is TestPlus, Test {
10371037
function testSignatureRoot(bytes32 hash) external whenInitialized {
10381038
bytes32 wrappedHash = keccak256(abi.encode(keccak256("Kernel(bytes32 hash)"), hash));
10391039
bytes32 digest = keccak256(
1040-
abi.encodePacked("\x19\x01", _buildDomainSeparator("Kernel", "0.3.1", address(kernel)), wrappedHash)
1040+
abi.encodePacked("\x19\x01", _buildDomainSeparator("Kernel", "0.3.2", address(kernel)), wrappedHash)
10411041
);
10421042
bytes memory sig = _rootSignDigest(digest, true);
10431043
sig = abi.encodePacked(hex"00", sig);
@@ -1065,7 +1065,7 @@ abstract contract KernelTestBase is TestPlus, Test {
10651065

10661066
bytes32 wrappedHash = keccak256(abi.encode(keccak256("Kernel(bytes32 hash)"), hash));
10671067
bytes32 digest = keccak256(
1068-
abi.encodePacked("\x19\x01", _buildDomainSeparator("Kernel", "0.3.1", address(kernel)), wrappedHash)
1068+
abi.encodePacked("\x19\x01", _buildDomainSeparator("Kernel", "0.3.2", address(kernel)), wrappedHash)
10691069
);
10701070
bytes memory sig = _validatorSignDigest(digest, true);
10711071
sig = abi.encodePacked(hex"01", address(enabledValidator), sig);
@@ -1092,7 +1092,7 @@ abstract contract KernelTestBase is TestPlus, Test {
10921092
);
10931093
bytes32 wrappedHash = keccak256(abi.encode(keccak256("Kernel(bytes32 hash)"), hash));
10941094
bytes32 digest = keccak256(
1095-
abi.encodePacked("\x19\x01", _buildDomainSeparator("Kernel", "0.3.1", address(kernel)), wrappedHash)
1095+
abi.encodePacked("\x19\x01", _buildDomainSeparator("Kernel", "0.3.2", address(kernel)), wrappedHash)
10961096
);
10971097
bytes memory sig = _permissionSignDigest(digest, true);
10981098
sig = abi.encodePacked(hex"02", PermissionId.unwrap(enabledPermission), hex"ff", sig);

test/ECDSAValidator.t.sol

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,8 @@ contract ECDSAValidatorTest is KernelTestBase {
104104
keccak256(abi.encodePacked(kernel.execute.selector))
105105
)
106106
);
107-
bytes32 digest = keccak256(
108-
abi.encodePacked("\x19\x01", _buildDomainSeparator("Kernel", "0.3.0-beta", address(kernel)), hash)
109-
);
107+
bytes32 digest =
108+
keccak256(abi.encodePacked("\x19\x01", _buildDomainSeparator("Kernel", "0.3.2", address(kernel)), hash));
110109
op.signature = encodeEnableSignature(
111110
validationConfig.hook,
112111
validationConfig.validatorData,

0 commit comments

Comments
 (0)