Skip to content

Commit

Permalink
rename to nostr_recipient
Browse files Browse the repository at this point in the history
  • Loading branch information
MSghais committed Jun 20, 2024
1 parent 2c1a98c commit b062a2a
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions onchain/src/social/deposit.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ pub mod DepositEscrow {
#[key]
sender: ContractAddress,
#[key]
recipient: NostrPublicKey,
nostr_recipient: NostrPublicKey,
#[key]
starknet_recipient: ContractAddress,
amount: u256,
Expand All @@ -98,7 +98,7 @@ pub mod DepositEscrow {
#[key]
sender: ContractAddress,
#[key]
recipient: NostrPublicKey,
nostr_recipient: NostrPublicKey,
amount: u256,
token_address: ContractAddress,
}
Expand All @@ -110,9 +110,7 @@ pub mod DepositEscrow {
#[key]
sender: ContractAddress,
#[key]
recipient: NostrPublicKey,
#[key]
starknet_recipient: ContractAddress,
nostr_recipient: NostrPublicKey,
amount: u256,
token_address: ContractAddress,
}
Expand Down Expand Up @@ -197,7 +195,7 @@ pub mod DepositEscrow {
DepositEvent {
deposit_id,
sender: get_caller_address(),
recipient: nostr_recipient,
nostr_recipient,
amount: amount,
token_address: token_address
}
Expand All @@ -223,9 +221,8 @@ pub mod DepositEscrow {
CancelEvent {
deposit_id,
sender: get_caller_address(),
recipient: deposit.recipient,
nostr_recipient: deposit.recipient,
amount: deposit.amount,
starknet_recipient: get_caller_address(),
token_address: deposit.token_address
}
);
Expand All @@ -248,7 +245,7 @@ pub mod DepositEscrow {
ClaimEvent {
deposit_id,
sender: get_caller_address(),
recipient: request.public_key,
nostr_recipient: request.public_key,
amount: deposit.amount,
starknet_recipient: get_caller_address(),
token_address: deposit.token_address
Expand Down

0 comments on commit b062a2a

Please sign in to comment.