Skip to content

Commit 7532136

Browse files
Merge pull request #6753 from hstove-stacks/fix/openapi-gettransaction-schema
fix: add new fields to openapi schema for gettransaction
2 parents c9003aa + b26fe7d commit 7532136

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

docs/rpc/components/schemas/get-transaction.schema.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,9 @@ properties:
1414
result:
1515
type: string
1616
description: Transaction execution result (Clarity value)
17+
block_height:
18+
type: [integer, "null"]
19+
description: Height of the block where the transaction was included
20+
is_canonical:
21+
type: boolean
22+
description: Whether the block where this transaction was included is in the canonical chain tip

stacks-common/src/util/macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,8 +426,8 @@ macro_rules! impl_array_newtype {
426426
}
427427
}
428428

429+
#[allow(clippy::non_canonical_clone_impl)]
429430
impl Clone for $thing {
430-
#[allow(clippy::non_canonical_clone_impl)]
431431
fn clone(&self) -> Self {
432432
$thing(self.0.clone())
433433
}

0 commit comments

Comments
 (0)