You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @notice Deposit funds into the portal and adds an L2 message which can only be consumed privately on Aztec
59
53
* @param _secretHashForRedeemingMintedNotes - The hash of the secret to redeem minted notes privately on Aztec. The hash should be 254 bits (so it can fit in a Field element)
60
54
* @param _amount - The amount to deposit
61
-
* @param _canceller - The address that can cancel the L1 to L2 message
62
-
* @param _deadline - The timestamp after which the entry can be cancelled
63
55
* @param _secretHashForL2MessageConsumption - The hash of the secret consumable L1 to L2 message. The hash should be 254 bits (so it can fit in a Field element)
64
56
* @return The key of the entry in the Inbox
65
57
*/
66
58
function depositToAztecPrivate(
67
59
bytes32_secretHashForRedeemingMintedNotes,
68
60
uint256_amount,
69
-
address_canceller,
70
-
uint32_deadline,
71
61
bytes32_secretHashForL2MessageConsumption
72
-
) externalpayablereturns (bytes32) {
62
+
) externalreturns (bytes32) {
73
63
// Preamble
74
64
IInbox inbox = registry.getInbox();
75
-
DataStructures.L2Actor memory actor = DataStructures.L2Actor(l2TokenAddress, 1);
65
+
DataStructures.L2Actor memory actor = DataStructures.L2Actor(l2Bridge, 1);
76
66
77
67
// Hash the message content to be reconstructed in the receiving contract
* @notice Deposit funds into the portal and adds an L2 message which can only be consumed privately on Aztec
59
53
* @param _secretHashForRedeemingMintedNotes - The hash of the secret to redeem minted notes privately on Aztec. The hash should be 254 bits (so it can fit in a Field element)
60
54
* @param _amount - The amount to deposit
61
-
* @param _canceller - The address that can cancel the L1 to L2 message
62
-
* @param _deadline - The timestamp after which the entry can be cancelled
63
55
* @param _secretHashForL2MessageConsumption - The hash of the secret consumable L1 to L2 message. The hash should be 254 bits (so it can fit in a Field element)
64
56
* @return The key of the entry in the Inbox
65
57
*/
66
58
function depositToAztecPrivate(
67
59
bytes32_secretHashForRedeemingMintedNotes,
68
60
uint256_amount,
69
-
address_canceller,
70
-
uint32_deadline,
71
61
bytes32_secretHashForL2MessageConsumption
72
-
) externalpayablereturns (bytes32) {
62
+
) externalreturns (bytes32) {
73
63
// Preamble
74
64
IInbox inbox = registry.getInbox();
75
-
DataStructures.L2Actor memory actor = DataStructures.L2Actor(l2TokenAddress, 1);
65
+
DataStructures.L2Actor memory actor = DataStructures.L2Actor(l2Bridge, 1);
76
66
77
67
// Hash the message content to be reconstructed in the receiving contract
0 commit comments