Skip to content

Commit a483cda

Browse files
🔖 (v2.2.1) update version (#94)
1 parent c42610a commit a483cda

File tree

6 files changed

+15
-7
lines changed

6 files changed

+15
-7
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [2.2.1]
8+
9+
### Changed
10+
- Replaced the storage slot used for ImplementationAuthority on the proxies, to avoid conflict with ERC-1822 on
11+
block explorers. By using the same storage slot, the explorers were identifying this proxy as an ERC-1822, while
12+
it's a different implementation here, the storage slot is not used to store the address of the implementation but
13+
the address to ImplementationAuthority contract that references the implementation
14+
715
## [2.2.0]
816

917
### Added

contracts/proxy/IdentityProxy.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ contract IdentityProxy {
1919

2020
// solhint-disable-next-line no-inline-assembly
2121
assembly {
22-
sstore(0xc5f16f0fcc639fa48a6947836d9850f504798523bf8c9a3a87d5876cf622bcf7, _implementationAuthority)
22+
sstore(0x821f3e4d3d679f19eacc940c87acf846ea6eae24a63058ea750304437a62aafc, _implementationAuthority)
2323
}
2424

2525
address logic = IImplementationAuthority(_implementationAuthority).getImplementation();
@@ -59,7 +59,7 @@ contract IdentityProxy {
5959
address implemAuth;
6060
// solhint-disable-next-line no-inline-assembly
6161
assembly {
62-
implemAuth := sload(0xc5f16f0fcc639fa48a6947836d9850f504798523bf8c9a3a87d5876cf622bcf7)
62+
implemAuth := sload(0x821f3e4d3d679f19eacc940c87acf846ea6eae24a63058ea750304437a62aafc)
6363
}
6464
return implemAuth;
6565
}

contracts/version/Version.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ contract Version {
1111
*/
1212
function version() external pure returns (string memory) {
1313
// version 2.2.0
14-
return "2.2.0";
14+
return "2.2.1";
1515
}
1616
}

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@onchain-id/solidity",
3-
"version": "2.2.0",
3+
"version": "2.2.1",
44
"description": "EVM solidity smart contracts for Blockchain OnchainID identities.",
55
"files": [
66
"artifacts",

test/identities/init.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ describe('Identity', () => {
3636
it('should return the version of the implementation', async () => {
3737
const {identityImplementation} = await loadFixture(deployIdentityFixture);
3838

39-
expect(await identityImplementation.version()).to.equal('2.2.0');
39+
expect(await identityImplementation.version()).to.equal('2.2.1');
4040
});
4141
});

0 commit comments

Comments
 (0)