diff --git a/contracts/finance/sources/vesting_wallet_linear.move b/contracts/finance/sources/vesting_wallet_linear.move index ddc18e40..6161b89d 100644 --- a/contracts/finance/sources/vesting_wallet_linear.move +++ b/contracts/finance/sources/vesting_wallet_linear.move @@ -370,7 +370,7 @@ public fun releasable(wallet: &VestingWallet, 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, 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); }