Skip to content

Commit

Permalink
feat: modify withdrawal event struct (#656)
Browse files Browse the repository at this point in the history
  • Loading branch information
zarboq authored May 14, 2024
1 parent 742ae99 commit c092116
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/event/event_emitter.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -889,6 +889,8 @@ mod EventEmitter {
receiver: ContractAddress,
callback_contract: ContractAddress,
market: ContractAddress,
long_token_swap_path: Span32<ContractAddress>,
short_token_swap_path: Span32<ContractAddress>,
market_token_amount: u256,
min_long_token_amount: u256,
min_short_token_amount: u256,
Expand Down Expand Up @@ -1747,6 +1749,8 @@ mod EventEmitter {
receiver: withdrawal.receiver,
callback_contract: withdrawal.callback_contract,
market: withdrawal.market,
long_token_swap_path: withdrawal.long_token_swap_path,
short_token_swap_path: withdrawal.short_token_swap_path,
market_token_amount: withdrawal.market_token_amount,
min_long_token_amount: withdrawal.min_long_token_amount,
min_short_token_amount: withdrawal.min_short_token_amount,
Expand Down
2 changes: 2 additions & 0 deletions tests/event/test_withdrawal_events_emitted.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ fn given_normal_conditions_when_emit_withdrawal_created_then_works() {
receiver: withdrawal.receiver,
callback_contract: withdrawal.callback_contract,
market: withdrawal.market,
long_token_swap_path: withdrawal.long_token_swap_path,
short_token_swap_path: withdrawal.short_token_swap_path,
market_token_amount: withdrawal.market_token_amount,
min_long_token_amount: withdrawal.min_long_token_amount,
min_short_token_amount: withdrawal.min_short_token_amount,
Expand Down

0 comments on commit c092116

Please sign in to comment.