From 6b5766bdb63dc38fb4d46a6b4af5a63c381a5cf0 Mon Sep 17 00:00:00 2001 From: bexan Date: Wed, 2 Oct 2024 11:57:25 +0200 Subject: [PATCH] feat(diri): update currency_chain_id format (#474) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description 1. change currency_chain_id format ## What type of PR is this? (check all applicable) - [ ] 🍕 Feature (`feat:`) - [ ] 🐛 Bug Fix (`fix:`) - [ ] 📝 Documentation Update (`docs:`) - [ ] 🎨 Style (`style:`) - [ ] 🧑‍💻 Code Refactor (`refactor:`) - [ ] 🔥 Performance Improvements (`perf:`) - [ ] ✅ Test (`test:`) - [ ] 🤖 Build (`build:`) - [ ] 🔁 CI (`ci:`) - [ ] 📦 Chore (`chore:`) - [ ] ⏩ Revert (`revert:`) - [ ] 🚀 Breaking Changes (`BREAKING CHANGE:`) ## Related Tickets & Documents ## Added tests? - [ ] 👍 yes - [ ] 🙅 no, because they aren't needed - [ ] 🙋 no, because I need help ## Added to documentation? - [ ] 📜 README.md - [ ] 📓 Documentation - [ ] 🙅 no documentation needed ## [optional] Are there any post-deployment tasks we need to perform? ## [optional] What gif best describes this PR or how it makes you feel? ### PR Title and Description Guidelines: - Ensure your PR title follows semantic versioning standards. This helps automate releases and changelogs. - Use types like `feat:`, `fix:`, `chore:`, `BREAKING CHANGE:` etc. in your PR title. - Your PR title will be used as a commit message when merging. Make sure it adheres to [Conventional Commits standards](https://www.conventionalcommits.org/). ## Closing Issues --- crates/diri/src/storage/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/diri/src/storage/types.rs b/crates/diri/src/storage/types.rs index 030591954..fdf60a8ae 100644 --- a/crates/diri/src/storage/types.rs +++ b/crates/diri/src/storage/types.rs @@ -40,7 +40,7 @@ impl From for PlacedData { cancelled_order_hash: to_hex_str_opt(&value.cancelled_order_hash), route: format!("{:?}", value.order.route), currency_address: to_hex_str(&FieldElement::from(value.order.currency_address)), - currency_chain_id: to_hex_str(&value.order.currency_chain_id), + currency_chain_id: format!("0x{:x}", value.order.currency_chain_id), salt: to_hex_str(&value.order.salt), offerer: to_hex_str(&FieldElement::from(value.order.offerer)), token_chain_id: format!("0x{:x}", value.order.token_chain_id),