Skip to content

Commit

Permalink
not-abstract
Browse files Browse the repository at this point in the history
  • Loading branch information
Sofianel5 committed Dec 15, 2023
1 parent aba91bb commit 1e265e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contracts/contracts/PrivateRamp.sol
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ contract PrivateRamp is Ownable, PrivateMerklePaymaster {
uint256 deposit; // ID of the deposit the intent is signaling on
uint256 amount; // Amount of USDC the on-ramper signals intent for on-chain
uint256 intentTimestamp; // Timestamp of when the intent was signaled
bytes32 outputCommitments; // Hash of output commitments
bytes32[] outputCommitments; // Hash of output commitments
}

struct IntentWithOnRamperId {
Expand Down Expand Up @@ -720,6 +720,7 @@ contract PrivateRamp is Ownable, PrivateMerklePaymaster {
uint256 onRampAmount = _intent.amount - fee;
// usdc.transfer(_intent.to, onRampAmount);
// insert commitments into tree

_insert(_intent.outputCommitments[0], _intent.outputCommitments[1]);

emit IntentFulfilled(_intentHash, _intent.deposit, _intent.onRamper, _intent.to, onRampAmount, fee);
Expand Down

0 comments on commit 1e265e3

Please sign in to comment.