Skip to content

Commit

Permalink
fix(zkgm): make predictWrappedToken a view
Browse files Browse the repository at this point in the history
  • Loading branch information
cor committed Jan 7, 2025
1 parent f87218e commit d0df31f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions evm/contracts/apps/ucs/03-zkgm/Zkgm.sol
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ contract UCS03Zkgm is
uint256 path,
uint32 channel,
bytes calldata token
) internal returns (address, bytes32) {
) internal view returns (address, bytes32) {
bytes32 wrappedTokenSalt = keccak256(abi.encode(path, channel, token));
address wrappedToken =
CREATE3.predictDeterministicAddress(wrappedTokenSalt);
Expand All @@ -698,7 +698,7 @@ contract UCS03Zkgm is
uint256 path,
uint32 channel,
bytes calldata token
) public returns (address, bytes32) {
) public view returns (address, bytes32) {
return internalPredictWrappedToken(path, channel, token);
}

Expand Down

0 comments on commit d0df31f

Please sign in to comment.