Skip to content

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

Description

@libby-coder

Problem

sdk/src/client.ts createSchedule builds an args array with 9 elements. The contract's create_schedule expects 10 (lockup_duration was added between cliff_duration and kind). Every SDK call to createSchedule fails at the RPC simulation step.

Fix

Insert nativeToScVal(lockupSecs, { type: 'u64' }) at index 7 in the args array. Add lockupDays?: number to CreateScheduleParams (defaulting to cliffDays).

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programbugSomething isn't workingsdkTypeScript SDK package

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions