Skip to content
Closed
Changes from all 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
2 changes: 1 addition & 1 deletion contracts/finance/sources/vesting_wallet_linear.move
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ public fun releasable<C>(wallet: &VestingWallet<Linear, Params, C>, clock: &Cloc
/// - `ENotEnded` if called before the schedule's end (`start_ms + period_ms * steps`).
/// - `ENotBeneficiary` if the caller is not the wallet's beneficiary.
public fun destroy(receipt: DestroyReceipt<Linear, Params>, clock: &Clock, ctx: &mut TxContext) {
let (beneficiary, params) = vesting_wallet::consume_receipt(receipt, Linear {});
let (beneficiary, params) = receipt.consume_receipt(Linear {});
assert!(clock.timestamp_ms() >= params.calculate_end(), ENotEnded);
assert!(ctx.sender() == beneficiary, ENotBeneficiary);
}
Expand Down
Loading