Skip to content

Commit

Permalink
fix: remove Solana config in handler
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxMustermann2 committed Feb 25, 2025
1 parent eaf133c commit a9f7ab6
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/core/ImuachainGateway.sol
Original file line number Diff line number Diff line change
Expand Up @@ -370,11 +370,7 @@ contract ImuachainGateway is
}
emit LSTTransfer(isDeposit, success, bytes32(token), bytes32(staker), amount);

if (_isSolana(srcChainId)) {
response = isDeposit ? bytes("") : abi.encodePacked(lzNonce, success, bytes32(token), bytes32(staker));
} else {
response = isDeposit ? bytes("") : abi.encodePacked(lzNonce, success);
}
response = isDeposit ? bytes("") : abi.encodePacked(lzNonce, success);
}

/// @notice Handles NST transfer from a client chain.
Expand Down Expand Up @@ -443,13 +439,7 @@ contract ImuachainGateway is
}
emit RewardOperation(isSubmitReward, success, bytes32(token), bytes32(avsOrWithdrawer), amount);

if (_isSolana(srcChainId)) {
response = isSubmitReward
? bytes("")
: abi.encodePacked(lzNonce, success, bytes32(token), bytes32(avsOrWithdrawer));
} else {
response = isSubmitReward ? bytes("") : abi.encodePacked(lzNonce, success);
}
response = isSubmitReward ? bytes("") : abi.encodePacked(lzNonce, success);
}

/// @notice Handles delegation request from a client chain.
Expand Down

0 comments on commit a9f7ab6

Please sign in to comment.