Skip to content

Commit

Permalink
fix: retrieve chainId in staking constructor without using assembly
Browse files Browse the repository at this point in the history
- retrieve chainId as block.chainid instead of using an assembly block
  • Loading branch information
gabririgo committed Jan 16, 2023
1 parent 4af9389 commit 0e8ea5a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions contracts/staking/immutable/MixinDeploymentConstants.sol
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,7 @@ abstract contract MixinDeploymentConstants is IStaking {
_poolRegistry = poolRegistry;
_rigoToken = rigoToken;
_implementation = address(this);
uint256 chainId;

assembly {
chainId := chainid()
}
uint256 chainId = block.chainid;

// we do not store in test environment as we want to separately handle inflationL2
address inflationL2 = address(0);
Expand Down

0 comments on commit 0e8ea5a

Please sign in to comment.