Skip to content

Commit 8cbde5c

Browse files
authored
Fix call to c2c_notify_p2p_swap_status_change (#8360)
1 parent 2c85819 commit 8cbde5c

File tree

6 files changed

+10
-1
lines changed

6 files changed

+10
-1
lines changed

backend/canisters/community/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
1111
- When a bot invites a user also send an invitation ([#8320](https://github.com/open-chat-labs/open-chat/pull/8320))
1212
- Expose `liquid_cycles_balance` in metrics ([#8350](https://github.com/open-chat-labs/open-chat/pull/8350))
1313
- Add delay before retrying c2c call under certain error conditions ([#8355](https://github.com/open-chat-labs/open-chat/pull/8355))
14+
- Generalise Escrow so it can be used by 3rd parties ([#8356](https://github.com/open-chat-labs/open-chat/pull/8356))
1415
- Allow members to read community summary/membership ([#8357](https://github.com/open-chat-labs/open-chat/pull/8357))
1516

1617
### Fixed

backend/canisters/escrow/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
1212
- Add delay before retrying c2c call under certain error conditions ([#8355](https://github.com/open-chat-labs/open-chat/pull/8355))
1313
- Generalise Escrow so it can be used by 3rd parties ([#8356](https://github.com/open-chat-labs/open-chat/pull/8356))
1414

15+
### Fixed
16+
17+
- Fix call to `c2c_notify_p2p_swap_status_change` ([#8359](https://github.com/open-chat-labs/open-chat/pull/8359))
18+
1519
## [[2.0.1694](https://github.com/open-chat-labs/open-chat/releases/tag/v2.0.1694-escrow)] - 2025-04-09
1620

1721
### Added

backend/canisters/escrow/api/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ pub struct SwapStatusCompleted {
5151
#[derive(Serialize, Deserialize, Debug)]
5252
pub struct SwapStatusChange {
5353
pub swap_id: u32,
54-
#[serde(alias = "created_by")]
54+
// TODO: Delete this field once communities, groups and users have been released
55+
pub created_by: Principal,
5556
pub offered_by: Principal,
5657
pub location: P2PSwapLocation,
5758
pub status: SwapStatus,

backend/canisters/escrow/impl/src/jobs/notify_status_change.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ fn get_next(state: &mut RuntimeState) -> Option<(CanisterId, SwapStatusChange)>
3939
canister_id,
4040
SwapStatusChange {
4141
swap_id: swap.id,
42+
created_by: swap.offered_by,
4243
offered_by: swap.offered_by,
4344
location: swap.location.clone(),
4445
status: swap.status(state.env.now()),

backend/canisters/group/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
1111
- When a bot invites a user also send an invitation ([#8320](https://github.com/open-chat-labs/open-chat/pull/8320))
1212
- Expose `liquid_cycles_balance` in metrics ([#8350](https://github.com/open-chat-labs/open-chat/pull/8350))
1313
- Add delay before retrying c2c call under certain error conditions ([#8355](https://github.com/open-chat-labs/open-chat/pull/8355))
14+
- Generalise Escrow so it can be used by 3rd parties ([#8356](https://github.com/open-chat-labs/open-chat/pull/8356))
1415

1516
### Fixed
1617

backend/canisters/user/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
2222
- Send user a message each time a day of streak insurance is used up ([8315](https://github.com/open-chat-labs/open-chat/pull/8315))
2323
- Expose `liquid_cycles_balance` in metrics ([#8350](https://github.com/open-chat-labs/open-chat/pull/8350))
2424
- Add delay before retrying c2c call under certain error conditions ([#8355](https://github.com/open-chat-labs/open-chat/pull/8355))
25+
- Generalise Escrow so it can be used by 3rd parties ([#8356](https://github.com/open-chat-labs/open-chat/pull/8356))
2526

2627
### Removed
2728

0 commit comments

Comments
 (0)