Skip to content

Commit 41948a6

Browse files
committed
Add freeze-struct for SinSwapResult
1 parent 9a8c750 commit 41948a6

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pallets/swap/runtime-api/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ frame-support.workspace = true
1010
scale-info.workspace = true
1111
sp-api.workspace = true
1212
sp-std.workspace = true
13+
subtensor-macros.workspace = true
1314
subtensor-runtime-common = { workspace = true, default-features = false }
1415
subtensor-swap-interface.workspace = true
1516

pallets/swap/runtime-api/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
#![cfg_attr(not(feature = "std"), no_std)]
22

33
use frame_support::pallet_prelude::*;
4+
use subtensor_macros::freeze_struct;
45
use subtensor_runtime_common::{AlphaCurrency, NetUid, TaoCurrency};
56

7+
#[freeze_struct("3a4fd213b5de5eb6")]
68
#[derive(Decode, Encode, PartialEq, Eq, Clone, Debug, TypeInfo)]
79
pub struct SimSwapResult {
810
pub tao_amount: TaoCurrency,

0 commit comments

Comments
 (0)