Skip to content

Commit 4d2475f

Browse files
committed
update constructor comment
1 parent 83614a9 commit 4d2475f

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

rust/pkg/cardano_serialization_lib.js.flow

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3261,6 +3261,9 @@ declare export class Pointer {
32613261
free(): void;
32623262

32633263
/**
3264+
* !!! DEPRECATED !!!
3265+
* This constructor uses outdated slot number format for the ttl value, tx_index and cert_index.
3266+
* Use `.new_pointer` instead
32643267
* @param {number} slot
32653268
* @param {number} tx_index
32663269
* @param {number} cert_index

rust/src/address.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,13 @@ pub struct Pointer {
619619
#[wasm_bindgen]
620620
impl Pointer {
621621

622+
/// !!! DEPRECATED !!!
623+
/// This constructor uses outdated slot number format for the ttl value, tx_index and cert_index.
624+
/// Use `.new_pointer` instead
625+
#[deprecated(
626+
since = "10.1.0",
627+
note = "Underlying value capacity of ttl (BigNum u64) bigger then Slot32. Use new_pointer instead."
628+
)]
622629
pub fn new(slot: Slot32, tx_index: TransactionIndex, cert_index: CertificateIndex) -> Self {
623630
Self {
624631
slot: slot.into(),

0 commit comments

Comments
 (0)