Skip to content

Commit

Permalink
feat(zkgm): transfer of wrapped asset verify quote is unwrapped
Browse files Browse the repository at this point in the history
  • Loading branch information
hussein-aitlahcen committed Jan 14, 2025
1 parent 51aa4e8 commit 30b6ec2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions evm/contracts/apps/ucs/03-zkgm/Zkgm.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import "@openzeppelin/token/ERC20/extensions/IERC20Metadata.sol";
import "solady/utils/CREATE3.sol";
import "solady/utils/LibBit.sol";
import "solady/utils/LibString.sol";
import "solady/utils/LibBytes.sol";

import "../../Base.sol";
import "../../../core/04-channel/IBCPacket.sol";
Expand Down Expand Up @@ -276,6 +277,7 @@ contract UCS03Zkgm is
{
using ZkgmLib for *;
using LibString for *;
using LibBytes for *;

IIBCPacket public ibcHandler;
mapping(bytes32 => IBCPacket) public inFlightPacket;
Expand Down Expand Up @@ -327,6 +329,8 @@ contract UCS03Zkgm is
) {
IZkgmERC20(baseToken).burn(msg.sender, baseAmount);
} else {
// We reset the origin, the asset will not be unescrowed on the destination
origin = 0;
// TODO: extract this as a step before verifying to allow for ERC777
// send hook
SafeERC20.safeTransferFrom(
Expand Down

0 comments on commit 30b6ec2

Please sign in to comment.