Skip to content

Commit

Permalink
feat(evm): upgrade solady
Browse files Browse the repository at this point in the history
  • Loading branch information
hussein-aitlahcen committed Jan 14, 2025
1 parent 50beb93 commit 51aa4e8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions evm/contracts/apps/ucs/03-zkgm/Zkgm.sol
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,17 @@ contract UCS03Zkgm is
return (wrappedToken, wrappedTokenSalt);
}

function internalPredictWrappedTokenMemory(
uint256 path,
uint32 channel,
bytes memory token
) internal view returns (address, bytes32) {
bytes32 wrappedTokenSalt = keccak256(abi.encode(path, channel, token));
address wrappedToken =
CREATE3.predictDeterministicAddress(wrappedTokenSalt);
return (wrappedToken, wrappedTokenSalt);
}

function predictWrappedToken(
uint256 path,
uint32 channel,
Expand Down
4 changes: 2 additions & 2 deletions evm/evm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ _: {
solady = pkgs.fetchFromGitHub {
owner = "vectorized";
repo = "solady";
rev = "v0.0.253";
hash = "sha256-P8joH3RZvA2GijTVlRE6CmSSP730Q3zY8k9jiWflyDk=";
rev = "v0.0.292";
hash = "sha256-74No9at4wi0K0bgfjRUYMfvtg2NmWA7yY2MnM1jFAY0=";
};
forge-std = pkgs.fetchFromGitHub {
owner = "foundry-rs";
Expand Down

0 comments on commit 51aa4e8

Please sign in to comment.