Skip to content

Commit

Permalink
reuse common code (#193)
Browse files Browse the repository at this point in the history
* reuse common code

* dump version
  • Loading branch information
ilya-korotya authored Nov 21, 2023
1 parent 1d6f97e commit 888cc45
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion contracts/lib/GenesisUtils.sol
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ library GenesisUtils {
* @dev calcIdFromEthAddress
*/
function calcIdFromEthAddress(bytes2 idType, address caller) internal pure returns (uint256) {
uint256 addr = uint256(uint160(caller));
uint256 addr = PrimitiveTypeUtils.addressToUint256(caller);

return calcIdFromGenesisState(idType, PrimitiveTypeUtils.reverseUint256(addr));
}
Expand Down
4 changes: 2 additions & 2 deletions contracts/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion contracts/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@iden3/contracts",
"description": "Smart Contract library for Solidity",
"version": "1.3.3",
"version": "1.3.4",
"files": [
"**/*.sol",
"/build/contracts/*.json",
Expand Down

0 comments on commit 888cc45

Please sign in to comment.