Skip to content

Closes #295 bug(sdk): VestflowClient.createSchedule is missing lockup_duration in args array — all calls fail#350

Closed
dev-sylv wants to merge 6 commits into
vestflow-labs:mainfrom
dev-sylv:fix/sdk-create-schedule-lockup
Closed

Closes #295 bug(sdk): VestflowClient.createSchedule is missing lockup_duration in args array — all calls fail#350
dev-sylv wants to merge 6 commits into
vestflow-labs:mainfrom
dev-sylv:fix/sdk-create-schedule-lockup

Conversation

@dev-sylv

Copy link
Copy Markdown

Fixes #295 bug(sdk): VestflowClient.createSchedule is missing lockup_duration in args array — all calls fail

The contract's create_schedule expects lockup_duration between cliff_duration and kind (10 args total), but the SDK only sent 9, causing every createSchedule call to fail at RPC simulation.

Adds optional lockupDays to CreateScheduleParams, defaulting to cliffDays, and inserts it at the correct index in the args array.

The contract's create_schedule expects lockup_duration between
cliff_duration and kind (10 args total), but the SDK only sent 9,
causing every createSchedule call to fail at RPC simulation.

Adds optional lockupDays to CreateScheduleParams, defaulting to
cliffDays, and inserts it at the correct index in the args array.

Fixes vestflow-labs#295
@drips-wave

drips-wave Bot commented Jun 29, 2026

Copy link
Copy Markdown

@dev-sylv Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@libby-coder

Copy link
Copy Markdown
Contributor

ci checks failing

…hecks

express-rate-limit and @types/express-rate-limit were added to
package.json without regenerating package-lock.json, so npm ci failed
before tsc/next build ever ran (Backend Build, Frontend Build).

MultiTokenVestingSchedule::claimable_at cast token_idx (u32) to usize
before calling Vec::get()/comparing against len(), both of which expect
u32 on soroban_sdk::Vec, breaking the contract build (Contract Build,
Contract Tests, Testnet E2E Tests all depend on it compiling).

Also fixes a pre-existing type error in stellar.test.ts (missing
paused/requires_milestones in the ScheduleData test helper) inherited
from main.
@libby-coder

Copy link
Copy Markdown
Contributor

please resolve

…dule-lockup

# Conflicts:
#	package-lock.json
@libby-coder

Copy link
Copy Markdown
Contributor

The Frontend build is Failing

… lightningcss binary

package-lock.json was last regenerated on Windows and only pins the
win32 lightningcss optional binary, so npm ci never fetches
lightningcss-linux-x64-gnu on the Ubuntu runner, breaking the Tailwind
v4 build. npm install re-resolves optionalDependencies for the
current platform.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@libby-coder

Copy link
Copy Markdown
Contributor

please resolve

1 similar comment
@libby-coder

Copy link
Copy Markdown
Contributor

please resolve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(sdk): VestflowClient.createSchedule is missing lockup_duration in args array — all calls fail

2 participants