Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Sync typescript unlock condition types #2215

Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions bindings/nodejs/lib/types/block/output/unlock-condition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,11 @@ class TimelockUnlockCondition extends UnlockCondition {
/**
* Slot index starting from which the output can be consumed.
*/
readonly slotIndex: SlotIndex;
readonly slot: SlotIndex;

constructor(slotIndex: SlotIndex) {
constructor(slot: SlotIndex) {
super(UnlockConditionType.Timelock);
this.slotIndex = slotIndex;
this.slot = slot;
}
}

Expand All @@ -172,16 +172,16 @@ class ExpirationUnlockCondition extends UnlockCondition {
/**
* Before this slot index, the Address Unlock Condition is allowed to unlock the output, after that only the address defined in Return Address can.
*/
readonly slotIndex: SlotIndex;
readonly slot: SlotIndex;

/**
* @param returnAddress The address that can unlock the expired output.
* @param slotIndex The slot index timestamp marking the end of the claim period.
* @param slot The slot index timestamp marking the end of the claim period.
*/
constructor(returnAddress: Address, slotIndex: SlotIndex) {
constructor(returnAddress: Address, slot: SlotIndex) {
super(UnlockConditionType.Expiration);
this.returnAddress = returnAddress;
this.slotIndex = slotIndex;
this.slot = slot;
}
}

Expand Down
Loading